-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[bootstrap] Improve the error message when ninja
is not found to link to installation instructions
#89096
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bootstrap] Improve the error message when ninja
is not found to link to installation instructions
#89096
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1494,8 +1494,12 @@ 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 `download-ci-llvm = true` in the `[llvm]` section of `config.toml` | ||
to download LLVM rather than building it. | ||
" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this last suggestion is great - it might be useful in addition to suggesting ninja = false, but it shouldn't replace it altogether. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Adding "ninja = false" didn't actually do anything as far as I could see. Is it working properly? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It should be working ok. I think an issue is that if you run There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes that's consistent with what I saw. What can we do to improve that? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I changed it to include both suggestions. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Sorry, I'm not too familiar with cmake. I would maybe look at removing |
||
); | ||
std::process::exit(1); | ||
|
Uh oh!
There was an error while loading. Please reload this page.