diff --git a/build.rs b/build.rs index 791f15e9e..5b92f070b 100644 --- a/build.rs +++ b/build.rs @@ -229,7 +229,8 @@ fn can_compile>(test: T) -> bool { .arg("--target") .arg(target) .arg("-o") - .arg("/dev/null"); // We don't care about the output (only whether it builds or not) + .arg("-") + .stdout(Stdio::null()); // We don't care about the output (only whether it builds or not) // If Cargo wants to set RUSTFLAGS, use that. if let Ok(rustflags) = var("CARGO_ENCODED_RUSTFLAGS") {