Skip to content

Commit afc3079

Browse files
authored
Merge pull request #91 from eoger/silent-probe
Redirect probe compile errors to /dev/null
2 parents 290d3d2 + 5ed5f56 commit afc3079

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::env;
22
use std::fs;
33
use std::path::Path;
4-
use std::process::{Command, ExitStatus};
4+
use std::process::{Command, ExitStatus, Stdio};
55

66
// This code exercises the surface area that we expect of the std Backtrace
77
// type. If the current toolchain is able to compile it, we go ahead and use
@@ -50,6 +50,7 @@ fn compile_probe() -> Option<ExitStatus> {
5050
let probefile = Path::new(&out_dir).join("probe.rs");
5151
fs::write(&probefile, PROBE).ok()?;
5252
Command::new(rustc)
53+
.stderr(Stdio::null())
5354
.arg("--edition=2018")
5455
.arg("--crate-name=anyhow_build")
5556
.arg("--crate-type=lib")

0 commit comments

Comments
 (0)