mirror of
https://github.com/dtolnay/cargo-expand.git
synced 2025-04-03 12:57:38 +03:00
Disregard empty RUSTC_WRAPPER
This commit is contained in:
parent
7b08e5a828
commit
9aa2edac49
1 changed files with 2 additions and 1 deletions
|
@ -177,7 +177,8 @@ fn do_cargo_expand() -> Result<i32> {
|
|||
|
||||
if needs_rustc_bootstrap() {
|
||||
if let Ok(current_exe) = env::current_exe() {
|
||||
let original_wrapper = env::var_os("RUSTC_WRAPPER");
|
||||
let original_wrapper =
|
||||
env::var_os("RUSTC_WRAPPER").filter(|wrapper| !wrapper.is_empty());
|
||||
let wrapper = original_wrapper.as_deref().unwrap_or(OsStr::new("/"));
|
||||
cmd.env(CARGO_EXPAND_RUSTC_WRAPPER, wrapper);
|
||||
cmd.env("RUSTC_WRAPPER", current_exe);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue