We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c110cfa commit bdca737Copy full SHA for bdca737
src/bootstrap/sanity.rs
@@ -94,7 +94,18 @@ pub fn check(build: &mut Build) {
94
.any(|build_llvm_ourselves| build_llvm_ourselves);
95
let need_cmake = building_llvm || build.config.any_sanitizers_enabled();
96
if need_cmake {
97
- cmd_finder.must_have("cmake");
+ if cmd_finder.maybe_have("cmake").is_none() {
98
+ eprintln!(
99
+ "
100
+Couldn't find required command: cmake
101
+
102
+You should install cmake, or set `download-ci-llvm = true` in the
103
+`[llvm]` section section of `config.toml` to download LLVM rather
104
+than building it.
105
+"
106
+ );
107
+ std::process::exit(1);
108
+ }
109
}
110
111
build.config.python = build
0 commit comments