File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ Several `-Z` flags are relevant for Miri:
166
166
* ` -Zmiri-disable-stacked-borrows ` disables checking the experimental
167
167
[ Stacked Borrows] aliasing rules. This can make Miri run faster, but it also
168
168
means no aliasing violations will be detected.
169
- * ` -Zmiri-disable-isolation ` disables host host isolation. As a consequence,
169
+ * ` -Zmiri-disable-isolation ` disables host isolation. As a consequence,
170
170
the program has access to host resources such as environment variables, file
171
171
systems, and randomness.
172
172
* ` -Zmiri-ignore-leaks ` disables the memory leak checker.
Original file line number Diff line number Diff line change @@ -24,8 +24,12 @@ pub struct EnvVars<'tcx> {
24
24
impl < ' tcx > EnvVars < ' tcx > {
25
25
pub ( crate ) fn init < ' mir > (
26
26
ecx : & mut InterpCx < ' mir , ' tcx , Evaluator < ' tcx > > ,
27
- excluded_env_vars : Vec < String > ,
27
+ mut excluded_env_vars : Vec < String > ,
28
28
) -> InterpResult < ' tcx > {
29
+ if ecx. tcx . sess . target . target . target_os . to_lowercase ( ) == "windows" {
30
+ // Exclude `TERM` var to avoid terminfo trying to open the termcap file.
31
+ excluded_env_vars. push ( "TERM" . to_owned ( ) ) ;
32
+ }
29
33
if ecx. machine . communicate {
30
34
let target_os = ecx. tcx . sess . target . target . target_os . as_str ( ) ;
31
35
for ( name, value) in env:: vars ( ) {
You can’t perform that action at this time.
0 commit comments