Rollup merge of #89096 - daira:improve-ninja-error-message, r=jyn514

[bootstrap] Improve the error message when `ninja` is not found to link to installation instructions

fixes #89091

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
the8472 2021-09-21 22:54:02 +02:00 committed by GitHub
commit a8633ebcac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1494,8 +1494,13 @@ impl Build {
{
eprintln!(
"
Couldn't find required command: ninja
You should install ninja, or set `ninja=false` in config.toml in the `[llvm]` section.
Couldn't find required command: ninja (or ninja-build)
You should install ninja as described at
<https://github.com/ninja-build/ninja/wiki/Pre-built-Ninja-packages>,
or set `ninja = false` in the `[llvm]` section of `config.toml`.
Alternatively, set `download-ci-llvm = true` in that `[llvm]` section
to download LLVM rather than building it.
"
);
std::process::exit(1);