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"
333333 None => true ,
334334 Some ( target) => target == rustc_version:: version_meta ( ) . unwrap ( ) . host ,
335335 } ;
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+
338338 std:: env:: set_var ( "MIRI_SYSROOT" , & sysroot) ; // pass the env var to the processes we spawn, which will turn it into "--sysroot" flags
339339 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#"'"'"'"# ) ) ;
341341 } else if !ask_user {
342342 println ! ( "A libstd for Miri is now available in `{}`." , sysroot. display( ) ) ;
343343 }
You can’t perform that action at this time.
0 commit comments