Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit a627b4f

Browse files
committed
[bootstrap] Improve the error message when ninja is not found to link to installation instructions.
Signed-off-by: Daira Hopwood <[email protected]>
1 parent 3bca723 commit a627b4f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/bootstrap/lib.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,8 +1494,12 @@ impl Build {
14941494
{
14951495
eprintln!(
14961496
"
1497-
Couldn't find required command: ninja
1498-
You should install ninja, or set `ninja=false` in config.toml in the `[llvm]` section.
1497+
Couldn't find required command: ninja (or ninja-build)
1498+
1499+
You should install ninja as described at
1500+
<https://github.com/ninja-build/ninja/wiki/Pre-built-Ninja-packages>,
1501+
or set `download-ci-llvm = true` in the `[llvm]` section of `config.toml`
1502+
to download LLVM rather than building it.
14991503
"
15001504
);
15011505
std::process::exit(1);

0 commit comments

Comments
 (0)