Skip to content

Commit 3ac7ccc

Browse files
committed
refactor: unset $RUSTC_WRAPPER so it doesn't add an extra rustc arg
1 parent e502d94 commit 3ac7ccc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

c2rust-refactor/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,9 @@ pub fn lib_main(opts: Options) -> interface::Result<()> {
391391
env::set_var("RUSTUP_TOOLCHAIN", toolchain_ver);
392392
}
393393

394+
// If `$RUSTC_WRAPPER` is set, an extra `rustc` arg will be set, which we don't want.
395+
env::remove_var("RUSTC_WRAPPER");
396+
394397
// Shut the compiler up while refactoring
395398
let mut rustflags = env::var_os("RUSTFLAGS").unwrap_or_default();
396399
rustflags.push(" -Awarnings");

0 commit comments

Comments
 (0)