mirror of
https://github.com/denoland/rusty_v8.git
synced 2024-11-25 15:29:43 -05:00
Exit with status 1 if build.rs fails (#62)
This commit is contained in:
parent
2cfb80e174
commit
7fd3bc56d6
1 changed files with 3 additions and 2 deletions
5
build.rs
5
build.rs
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue