Don't checkout the LLVM submodule in x dist --dry-run

We don't actually need it and it's quite slow.
This commit is contained in:
jyn 2023-07-09 18:59:48 -05:00
parent 2b3db1cd5a
commit fb3ac44dd8

View File

@ -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");