We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2d93e0 commit f70b7beCopy full SHA for f70b7be
build.rs
@@ -240,6 +240,9 @@ fn can_compile<T: AsRef<str>>(test: T) -> bool {
240
let rustc = var("RUSTC").unwrap();
241
let target = var("TARGET").unwrap();
242
243
+ // Use `RUSTC_WRAPPER` if it's set, unless it's set to an empty string,
244
+ // as documented [here].
245
+ // [here]: https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-reads
246
let wrapper = var("RUSTC_WRAPPER")
247
.ok()
248
.and_then(|w| if w.is_empty() { None } else { Some(w) });
0 commit comments