We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e12b4f commit 6a0d1b6Copy full SHA for 6a0d1b6
build.rs
@@ -199,6 +199,9 @@ fn can_compile<T: AsRef<str>>(test: T) -> bool {
199
let rustc = var("RUSTC").unwrap();
200
let target = var("TARGET").unwrap();
201
202
+ // Use `RUSTC_WRAPPER` if it's set, unless it's set to an empty string,
203
+ // as documented [here].
204
+ // [here]: https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-reads
205
let wrapper = var("RUSTC_WRAPPER")
206
.ok()
207
.and_then(|w| if w.is_empty() { None } else { Some(w) });
0 commit comments