Skip to content

Commit 314a6cd

Browse files
authored
Rollup merge of #148883 - weihanglo:sanity, r=Kobzol
bootstrap: dont require cmake if local-rebuild is enabled This is for people rebuilding stdlib directly from stage 0 with the full toolchain from rust-src rustup component. The toolchain itself should have sufficient LLVM tools, so CMake and LLVM are not required when `build.local-rebuild = true` Fixes #148835 r? Kobzol
2 parents 3a4a738 + b1e8d56 commit 314a6cd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bootstrap/src/core/sanity.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ pub fn check(build: &mut Build) {
142142

143143
// We need cmake, but only if we're actually building LLVM or sanitizers.
144144
let building_llvm = !build.config.llvm_from_ci
145+
&& !build.config.local_rebuild
145146
&& build.hosts.iter().any(|host| {
146147
build.config.llvm_enabled(*host)
147148
&& build

0 commit comments

Comments
 (0)