diff --git a/build/runner/src/build.rs b/build/runner/src/build.rs index 6bd34c0db..5e3042aba 100644 --- a/build/runner/src/build.rs +++ b/build/runner/src/build.rs @@ -77,7 +77,9 @@ pub fn run_build(args: BuildArgs) { } // run build - let mut status = command.status().expect("ninja not installed"); + let Ok(mut status) = command.status() else { + panic!("\nn2 and ninja missing/failed. did you forget 'bash tools/install-n2'?"); + }; if !status.success() && Instant::now().duration_since(start_time).as_secs() < 3 { // if the build fails quickly, there's a reasonable chance that build.ninja // references a file that has been renamed/deleted. We currently don't diff --git a/docs/linux.md b/docs/linux.md index c4cb2bf15..ae4a52838 100644 --- a/docs/linux.md +++ b/docs/linux.md @@ -19,13 +19,10 @@ Users on ARM64, see the notes at the bottom of this file before proceeding. **Ensure some basic tools are installed**: ``` -$ sudo apt install bash grep findutils curl gcc g++ make git rsync ninja-build +$ sudo apt install bash grep findutils curl gcc g++ make git rsync ``` - The 'find' utility is 'findutils' on Debian. -- Your distro may call the package 'ninja' instead of 'ninja-build', or it - may not have a version new enough - if so, install from the zip mentioned in - development.md. ## Missing Libraries