Skip to content

Commit

Permalink
Use stdout and redirect to null()
Browse files Browse the repository at this point in the history
  • Loading branch information
nmattia committed Oct 29, 2024
1 parent 330bcc0 commit 526a034
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ fn can_compile<T: AsRef<str>>(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") {
Expand Down

0 comments on commit 526a034

Please sign in to comment.