Skip to content

Commit 7255c28

Browse files
committedJun 11, 2024
run-make-support: remove env_var
This is incorrectly named (it's actually `env_clear`), and is itself a gigantic footgun: removing `TMPDIR` on Unix and `TMP`/`TEMP` on Windows basically wrecks anything that relies on `std::env::temp_dir` from functioning correctly. For example, this includes rustc's codegen.
1 parent aec67e2 commit 7255c28

File tree

1 file changed

+0
-6
lines changed
  • src/tools/run-make-support/src

1 file changed

+0
-6
lines changed
 

‎src/tools/run-make-support/src/lib.rs

-6
Original file line numberDiff line numberDiff line change
@@ -364,12 +364,6 @@ macro_rules! impl_common_helpers {
364364
self
365365
}
366366

367-
/// Clear all environmental variables.
368-
pub fn env_var(&mut self) -> &mut Self {
369-
self.cmd.env_clear();
370-
self
371-
}
372-
373367
/// Generic command argument provider. Prefer specific helper methods if possible.
374368
/// Note that for some executables, arguments might be platform specific. For C/C++
375369
/// compilers, arguments might be platform *and* compiler specific.

0 commit comments

Comments
 (0)