We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e571f2d + d44bcbf commit 3f957ebCopy full SHA for 3f957eb
src/bootstrap/sanity.rs
@@ -78,7 +78,11 @@ pub fn check(build: &mut Build) {
78
}
79
need_cmd("cmake".as_ref());
80
if build.config.ninja {
81
- need_cmd("ninja".as_ref())
+ // Some Linux distros rename `ninja` to `ninja-build`.
82
+ // CMake can work with either binary name.
83
+ if have_cmd("ninja-build".as_ref()).is_none() {
84
+ need_cmd("ninja".as_ref());
85
+ }
86
87
break
88
0 commit comments