File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -333,11 +333,11 @@ path = "lib.rs"
333
333
None => true ,
334
334
Some ( target) => target == rustc_version:: version_meta ( ) . unwrap ( ) . host ,
335
335
} ;
336
- let sysroot = if is_host { dir. join ( "HOST" ) } else { PathBuf :: from ( dir) } ;
337
-
336
+ let sysroot = if is_host { dir. join ( "HOST" ) } else { PathBuf :: from ( dir) } ;
337
+
338
338
std:: env:: set_var ( "MIRI_SYSROOT" , & sysroot) ; // pass the env var to the processes we spawn, which will turn it into "--sysroot" flags
339
339
if print_env {
340
- println ! ( "MIRI_SYSROOT={:?} " , & sysroot) ; // for Windows users, prints path with backslashes escaped.
340
+ println ! ( "MIRI_SYSROOT='{}' " , sysroot. display ( ) . to_string ( ) . replace ( '\'' , r#"'"'"'"# ) ) ;
341
341
} else if !ask_user {
342
342
println ! ( "A libstd for Miri is now available in `{}`." , sysroot. display( ) ) ;
343
343
}
You can’t perform that action at this time.
0 commit comments