From fb3ac44dd839010b0bb91fdb76d42c6b01b300de Mon Sep 17 00:00:00 2001 From: jyn Date: Sun, 9 Jul 2023 18:59:48 -0500 Subject: [PATCH] Don't checkout the LLVM submodule in `x dist --dry-run` We don't actually need it and it's quite slow. --- src/bootstrap/dist.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs index 2141bb0ddd9b..8c71b7f7fc22 100644 --- a/src/bootstrap/dist.rs +++ b/src/bootstrap/dist.rs @@ -902,7 +902,9 @@ impl Step for Src { /// Creates the `rust-src` installer component fn run(self, builder: &Builder<'_>) -> GeneratedTarball { - builder.update_submodule(&Path::new("src/llvm-project")); + if !builder.config.dry_run() { + builder.update_submodule(&Path::new("src/llvm-project")); + } let tarball = Tarball::new_targetless(builder, "rust-src");