Skip to content

Commit 59698a7

Browse files
authored
Rollup merge of rust-lang#130306 - onur-ozkan:avoid-submodule-updates-in-tests, r=Kobzol
avoid updating LLVM submodule during bootstrap unit tests To test this, make sure you don't have `src/llvm-project` fetched and then set `llvm.download-ci-llvm=true` and run `x test bootstrap`.
2 parents 97475df + f03bfb8 commit 59698a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/bootstrap/src/core/config/config.rs

+2
Original file line numberDiff line numberDiff line change
@@ -2739,6 +2739,8 @@ impl Config {
27392739
return false;
27402740
}
27412741

2742+
// Fetching the LLVM submodule is unnecessary for self-tests.
2743+
#[cfg(not(feature = "bootstrap-self-test"))]
27422744
self.update_submodule("src/llvm-project");
27432745

27442746
// Check for untracked changes in `src/llvm-project`.

0 commit comments

Comments
 (0)