Skip to content

Commit

Permalink
Unrolled build for rust-lang#130306
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
rust-timer authored Sep 14, 2024
2 parents 23b04c0 + f03bfb8 commit cbd3523
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 cbd3523

Please sign in to comment.