diff options
| author | jyn <github@jyn.dev> | 2023-07-09 18:59:48 -0500 |
|---|---|---|
| committer | jyn <github@jyn.dev> | 2023-07-14 17:27:20 -0500 |
| commit | fb3ac44dd839010b0bb91fdb76d42c6b01b300de (patch) | |
| tree | c18a2e773e62d62c0cb6e959072be4243a3f6808 | |
| parent | 2b3db1cd5a406c8f66942c1926f28f836296affb (diff) | |
| download | rust-fb3ac44dd839010b0bb91fdb76d42c6b01b300de.tar.gz rust-fb3ac44dd839010b0bb91fdb76d42c6b01b300de.zip | |
Don't checkout the LLVM submodule in `x dist --dry-run`
We don't actually need it and it's quite slow.
| -rw-r--r-- | src/bootstrap/dist.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs index 2141bb0ddd9..8c71b7f7fc2 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"); |
