Skip to content

Commit ef3493b

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

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
@@ -50,7 +50,7 @@ fn can_compile<T: AsRef<str>>(test: T) -> bool {
5050
let rustc = var("RUSTC").unwrap();
5151
let target = var("TARGET").unwrap();
5252

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

0 commit comments

Comments
 (0)