File tree 2 files changed +6
-7
lines changed
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -270,8 +270,9 @@ environment variable:
270
270
` warn` prints a full backtrace when that happen; `warn-nobacktrace` is less
271
271
verbose. `hide` hides the warning entirely.
272
272
* `-Zmiri-env-exclude=<var>` keeps the `var` environment variable isolated from the host so that it
273
- cannot be accessed by the program. Can be used multiple times to exclude several variables. On
274
- Windows, the `TERM` environment variable is excluded by default. This has no effect unless
273
+ cannot be accessed by the program. Can be used multiple times to exclude several variables. The
274
+ ` TERM` environment variable is excluded by default to [speed up the test
275
+ harness](https://github.com/rust-lang/miri/issues/1702). This has no effect unless
275
276
` -Zmiri-disable-validation` is also set.
276
277
* `-Zmiri-env-forward=<var>` forwards the `var` environment variable to the interpreted program. Can
277
278
be used multiple times to forward several variables. This has no effect if
Original file line number Diff line number Diff line change @@ -42,11 +42,9 @@ impl<'tcx> EnvVars<'tcx> {
42
42
forwarded_env_vars : Vec < String > ,
43
43
) -> InterpResult < ' tcx > {
44
44
let target_os = ecx. tcx . sess . target . os . as_str ( ) ;
45
- if target_os == "windows" {
46
- // Temporary hack: Exclude `TERM` var to avoid terminfo trying to open the termcap file.
47
- // Can be removed once https://github.com/rust-lang/miri/issues/1013 is resolved.
48
- excluded_env_vars. push ( "TERM" . to_owned ( ) ) ;
49
- }
45
+ // HACK: Exclude `TERM` var to avoid terminfo trying to open the termcap file.
46
+ // This is (a) very slow and (b) does not work on Windows.
47
+ excluded_env_vars. push ( "TERM" . to_owned ( ) ) ;
50
48
51
49
// Skip the loop entirely if we don't want to forward anything.
52
50
if ecx. machine . communicate ( ) || !forwarded_env_vars. is_empty ( ) {
You can’t perform that action at this time.
0 commit comments