Skip to content

Commit fb3ac44

Browse files
committed
Don't checkout the LLVM submodule in x dist --dry-run
We don't actually need it and it's quite slow.
1 parent 2b3db1c commit fb3ac44

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bootstrap/dist.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,9 @@ impl Step for Src {
902902

903903
/// Creates the `rust-src` installer component
904904
fn run(self, builder: &Builder<'_>) -> GeneratedTarball {
905-
builder.update_submodule(&Path::new("src/llvm-project"));
905+
if !builder.config.dry_run() {
906+
builder.update_submodule(&Path::new("src/llvm-project"));
907+
}
906908

907909
let tarball = Tarball::new_targetless(builder, "rust-src");
908910

0 commit comments

Comments
 (0)