mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
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`
This commit is contained in:
@@ -142,6 +142,7 @@ pub fn check(build: &mut Build) {
|
||||
|
||||
// We need cmake, but only if we're actually building LLVM or sanitizers.
|
||||
let building_llvm = !build.config.llvm_from_ci
|
||||
&& !build.config.local_rebuild
|
||||
&& build.hosts.iter().any(|host| {
|
||||
build.config.llvm_enabled(*host)
|
||||
&& build
|
||||
|
||||
Reference in New Issue
Block a user