diff options
| author | Thomas Hatzopoulos <thatzopoulos965@gmail.com> | 2022-05-01 20:49:45 -0500 |
|---|---|---|
| committer | Thomas Hatzopoulos <thatzopoulos965@gmail.com> | 2022-05-07 17:10:48 -0500 |
| commit | bdca7376fd9f800f57b2ee17d95af3b327baa332 (patch) | |
| tree | 40db104c3cdefc1c027c7306b37e90f52e1226f6 | |
| parent | c110cfa161aab391bd37c16a95b8330bfc7e54ce (diff) | |
| download | rust-bdca7376fd9f800f57b2ee17d95af3b327baa332.tar.gz rust-bdca7376fd9f800f57b2ee17d95af3b327baa332.zip | |
updated error message for missing cmake
| -rw-r--r-- | src/bootstrap/sanity.rs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/bootstrap/sanity.rs b/src/bootstrap/sanity.rs index c96e6f9a367..64c5dd7aea7 100644 --- a/src/bootstrap/sanity.rs +++ b/src/bootstrap/sanity.rs @@ -94,7 +94,18 @@ pub fn check(build: &mut Build) { .any(|build_llvm_ourselves| build_llvm_ourselves); let need_cmake = building_llvm || build.config.any_sanitizers_enabled(); if need_cmake { - cmd_finder.must_have("cmake"); + if cmd_finder.maybe_have("cmake").is_none() { + eprintln!( + " +Couldn't find required command: cmake + +You should install cmake, or set `download-ci-llvm = true` in the +`[llvm]` section section of `config.toml` to download LLVM rather +than building it. +" + ); + std::process::exit(1); + } } build.config.python = build |
