Skip to content

Commit d48bd49

Browse files
committed
Use RUSTC_WRAPPER instead of CARGO_RUSTC_WRAPPER.
Similar to dtolnay/anyhow#248, and as suggested [here], check `RUSTC_WRAPPER` instead of `CARGO_RUSTC_WRAPPER`. [here]: bytecodealliance/rustix#544 (comment)
1 parent 50bed8b commit d48bd49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ fn can_compile<T: AsRef<str>>(test: T) -> bool {
4747
let rustc = var("RUSTC").unwrap();
4848
let target = var("TARGET").unwrap();
4949

50-
let mut cmd = if let Ok(wrapper) = var("CARGO_RUSTC_WRAPPER") {
50+
let mut cmd = if let Ok(wrapper) = var("RUSTC_WRAPPER") {
5151
let mut cmd = std::process::Command::new(wrapper);
5252
// The wrapper's first argument is supposed to be the path to rustc.
5353
cmd.arg(rustc);

0 commit comments

Comments
 (0)