Skip to content
Myr

Redirect probe compile errors to /dev/null

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Edouard Oger · committed by Edouard Oger · parent 290d3d2 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:build.rs+2 added-1 removed
1use std::env;2use std::fs;3use std::path::Path;4use std::process::{Command, ExitStatus};4use std::process::{Command, ExitStatus, Stdio};56// This code exercises the surface area that we expect of the std Backtrace7// type. If the current toolchain is able to compile it, we go ahead and use8// backtrace in anyhow.
40 unmodified lines
49 let out_dir = env::var_os("OUT_DIR")?;50 let probefile = Path::new(&out_dir).join("probe.rs");51 fs::write(&probefile, PROBE).ok()?;52 Command::new(rustc)53 .stderr(Stdio::null())54 .arg("--edition=2018")55 .arg("--crate-name=anyhow_build")56 .arg("--crate-type=lib")57 .arg("--emit=metadata")
6 unmodified lines