mirror of
https://github.com/dtolnay/cargo-expand.git
synced 2025-04-03 21:07:37 +03:00
Merge pull request #224 from dtolnay/emptywrapper
Disregard empty RUSTC_WRAPPER
This commit is contained in:
commit
cd88d66e0a
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