Skip to content

Commit

Permalink
Rollup merge of #89096 - daira:improve-ninja-error-message, r=jyn514
Browse files Browse the repository at this point in the history
[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>
  • Loading branch information
the8472 authored Sep 21, 2021
2 parents d7de8d2 + 23d6437 commit a8633eb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/bootstrap/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a8633eb

Please sign in to comment.