0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-11-28 16:21:04 -05:00

Exit with status 1 if build.rs fails (#62)

This commit is contained in:
Andy Hayden 2019-12-13 17:17:45 -08:00 committed by Ry Dahl
parent 2cfb80e174
commit 7fd3bc56d6

View file

@ -3,6 +3,7 @@ use cargo_gn;
use std::env; use std::env;
use std::path::Path; use std::path::Path;
use std::path::PathBuf; use std::path::PathBuf;
use std::process::exit;
use std::process::Command; use std::process::Command;
use which::which; use which::which;
@ -18,12 +19,12 @@ fn main() {
eprintln!( eprintln!(
"missing source code. Run 'git submodule update --init --recursive'" "missing source code. Run 'git submodule update --init --recursive'"
); );
return; exit(1);
} }
// Don't build if "cargo doc" is being run. // Don't build if "cargo doc" is being run.
if env::var_os("RUSTDOCFLAGS").is_some() { if env::var_os("RUSTDOCFLAGS").is_some() {
return; exit(1);
} }
if need_gn_ninja_download() { if need_gn_ninja_download() {