Skip to content

Commit

Permalink
Prevent cargo build from hanging on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Scandurra committed Oct 26, 2016
1 parent 4a750b0 commit 10273d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/neon-sys/build.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extern crate gcc;
extern crate regex;

use std::process::Command;
use std::process::{Command, Stdio};
use std::env;
use regex::Regex;

Expand Down Expand Up @@ -39,6 +39,7 @@ fn build_object_file() {
// Run `node-gyp build` (appending -d in debug mode).
let build_args = if debug() { vec!["build", "-d"] } else { vec!["build"] };
Command::new(node_gyp_command)
.stderr(Stdio::null()) // Prevent cargo build from hanging on Windows.
.args(&build_args)
.status()
.ok()
Expand Down

0 comments on commit 10273d4

Please sign in to comment.