Skip to content

Commit 116223e

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 8010365 commit 116223e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bootstrap/dist.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,9 @@ impl Step for Src {
897897

898898
/// Creates the `rust-src` installer component
899899
fn run(self, builder: &Builder<'_>) -> GeneratedTarball {
900-
builder.update_submodule(&Path::new("src/llvm-project"));
900+
if !builder.config.dry_run() {
901+
builder.update_submodule(&Path::new("src/llvm-project"));
902+
}
901903

902904
let tarball = Tarball::new_targetless(builder, "rust-src");
903905

0 commit comments

Comments
 (0)