Skip to content

Commit bdca737

Browse files
committed
updated error message for missing cmake
1 parent c110cfa commit bdca737

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/bootstrap/sanity.rs

+12-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,18 @@ pub fn check(build: &mut Build) {
9494
.any(|build_llvm_ourselves| build_llvm_ourselves);
9595
let need_cmake = building_llvm || build.config.any_sanitizers_enabled();
9696
if need_cmake {
97-
cmd_finder.must_have("cmake");
97+
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+
}
98109
}
99110

100111
build.config.python = build

0 commit comments

Comments
 (0)