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 46bb1a3 commit d2d93e0Copy full SHA for d2d93e0
build.rs
@@ -240,7 +240,11 @@ fn can_compile<T: AsRef<str>>(test: T) -> bool {
240
let rustc = var("RUSTC").unwrap();
241
let target = var("TARGET").unwrap();
242
243
- let mut cmd = if let Ok(wrapper) = var("RUSTC_WRAPPER") {
+ let wrapper = var("RUSTC_WRAPPER")
244
+ .ok()
245
+ .and_then(|w| if w.is_empty() { None } else { Some(w) });
246
+
247
+ let mut cmd = if let Some(wrapper) = wrapper {
248
let mut cmd = std::process::Command::new(wrapper);
249
// The wrapper's first argument is supposed to be the path to rustc.
250
cmd.arg(rustc);
0 commit comments