Skip to content

Commit

Permalink
Rollup merge of #130306 - onur-ozkan:avoid-submodule-updates-in-tests…
Browse files Browse the repository at this point in the history
…, 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`.
  • Loading branch information
Zalathar authored Sep 14, 2024
2 parents 97475df + f03bfb8 commit 59698a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bootstrap/src/core/config/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2739,6 +2739,8 @@ impl Config {
return false;
}

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

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

0 comments on commit 59698a7

Please sign in to comment.