Skip to content

Commit

Permalink
work around RAs RUSTC_WRAPPER hack
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Aug 8, 2022
1 parent e55761e commit 13e428e
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,9 @@ fn compile_probe() -> Option<ExitStatus> {
let probefile = Path::new(&out_dir).join("probe.rs");
fs::write(&probefile, PROBE).ok()?;

// Make sure to pick up Cargo rustc configuration.
let mut cmd = if let Some(wrapper) = env::var_os("RUSTC_WRAPPER") {
let mut cmd = Command::new(wrapper);
// The wrapper's first argument is supposed to be the path to rustc.
cmd.arg(rustc);
cmd
} else {
Command::new(rustc)
};
// Deliberately ignoring RUSTC_WRAPPER to work around
// <https://github.com/rust-lang/rust-analyzer/issues/12973>.
let mut cmd = Command::new(rustc);

cmd.stderr(Stdio::null())
.arg("--edition=2018")
Expand Down

0 comments on commit 13e428e

Please sign in to comment.