mirror of
https://github.com/denoland/rusty_v8.git
synced 2024-11-21 15:04:33 -05:00
Add back gn args --list on build (#1013)
This commit is contained in:
parent
8dfb1e6559
commit
53299dceb4
1 changed files with 11 additions and 0 deletions
11
build.rs
11
build.rs
|
@ -210,9 +210,20 @@ fn build_v8() {
|
|||
let gn_out = maybe_gen(&gn_root, gn_args);
|
||||
assert!(gn_out.exists());
|
||||
assert!(gn_out.join("args.gn").exists());
|
||||
print_gn_args(&gn_out);
|
||||
build("rusty_v8", None);
|
||||
}
|
||||
|
||||
fn print_gn_args(gn_out_dir: &Path) {
|
||||
assert!(Command::new(gn())
|
||||
.arg("args")
|
||||
.arg(&gn_out_dir)
|
||||
.arg("--list")
|
||||
.status()
|
||||
.unwrap()
|
||||
.success());
|
||||
}
|
||||
|
||||
fn maybe_clone_repo(dest: &str, repo: &str) {
|
||||
if !Path::new(&dest).exists() {
|
||||
assert!(Command::new("git")
|
||||
|
|
Loading…
Reference in a new issue