From 53299dceb40d027308cfe8fb74fcbc10ed345c8a Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 8 Jul 2022 10:55:58 -0400 Subject: [PATCH] Add back gn args --list on build (#1013) --- build.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build.rs b/build.rs index 032c1052..55ff5b44 100644 --- a/build.rs +++ b/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")