We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6149dff commit bb39f35Copy full SHA for bb39f35
src/bootstrap/sanity.rs
@@ -100,8 +100,16 @@ pub fn check(build: &mut Build) {
100
if build.config.ninja {
101
// Some Linux distros rename `ninja` to `ninja-build`.
102
// CMake can work with either binary name.
103
- if cmd_finder.maybe_have("ninja-build").is_none() {
104
- cmd_finder.must_have("ninja");
+ if cmd_finder.maybe_have("ninja-build").is_none()
+ && cmd_finder.maybe_have("ninja").is_none()
105
+ {
106
+ eprintln!(
107
+ "
108
+Couldn't find required command: ninja
109
+You should install ninja, or set ninja=false in config.toml
110
+"
111
+ );
112
+ std::process::exit(1);
113
}
114
115
0 commit comments