Skip to content
Myr

Touch up PR 157

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

authored by David Tolnay · committed by David Tolnay · parent a3aba77 · Browse files · 1 file+8 added−9 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+8 added−9 removed

  • other:+8 added−9 removed

1 file+8 added−9 removed

modified:build.rs+8 added-9 removed
67 unmodified lines
68 let probefile = Path::new(&out_dir).join("probe.rs");69 fs::write(&probefile, PROBE).ok()?;7071 // Make sure to pick up Cargo rustc configuration.72 let mut cmd = env::var_os("CARGO_RUSTC_WRAPPER").map_or_else(73 || Command::new(&rustc),74 |wrapper| {75 let mut cmd = Command::new(wrapper);76 // The wrapper's first argument should always be the path to rustc.77 cmd.arg(&rustc);78 cmd79 },80 );72 let mut cmd = if let Some(wrapper) = env::var_os("CARGO_RUSTC_WRAPPER") {73 let mut cmd = Command::new(wrapper);74 // The wrapper's first argument is supposed to be the path to rustc.75 cmd.arg(rustc);76 cmd77 } else {78 Command::new(rustc)79 };8081 cmd.stderr(Stdio::null())82 .arg("--edition=2018")83 .arg("--crate-name=anyhow_build")
28 unmodified lines