Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove tools/build.py #2865

Merged
merged 18 commits into from
Sep 7, 2019
Prev Previous commit
Next Next commit
add DENO_NO_BINARY_DOWNLOAD
  • Loading branch information
ry committed Sep 6, 2019
commit 07a33795578db3e4599eb7737558a218207c4d4d
16 changes: 9 additions & 7 deletions core/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,15 @@ mod gn {

pub fn run(&self, gn_target: &str) {
if !self.gn_out_path.join("build.ninja").exists() {
let status = Command::new("python")
.env("DENO_BUILD_PATH", &self.gn_out_dir)
.env("DENO_BUILD_MODE", &self.gn_mode)
.env("DEPOT_TOOLS_WIN_TOOLCHAIN", "0")
.arg("./tools/setup.py")
.status()
.expect("setup.py failed");
let mut cmd = Command::new("python");
cmd.env("DENO_BUILD_PATH", &self.gn_out_dir);
cmd.env("DENO_BUILD_MODE", &self.gn_mode);
cmd.env("DEPOT_TOOLS_WIN_TOOLCHAIN", "0");
cmd.arg("./tools/setup.py");
if env::var_os("DENO_NO_BINARY_DOWNLOAD").is_some() {
cmd.arg("--no-binary-download");
}
let status = cmd.status().expect("setup.py failed");
assert!(status.success());
}
ry marked this conversation as resolved.
Show resolved Hide resolved

Expand Down