File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -425,7 +425,7 @@ path = "lib.rs"
425
425
// architecture matches the host.
426
426
let is_host = match target {
427
427
None => true ,
428
- Some ( target) => target == host_triple ( ) ,
428
+ Some ( target) => target == rustc_version :: version_meta ( ) . unwrap ( ) . host ,
429
429
} ;
430
430
let sysroot = if is_host { dir. join ( "HOST" ) } else { PathBuf :: from ( dir) } ;
431
431
std:: env:: set_var ( "MIRI_SYSROOT" , & sysroot) ; // pass the env var to the processes we spawn, which will turn it into "--sysroot" flags
@@ -517,7 +517,6 @@ fn in_cargo_miri() {
517
517
// The remaining targets we do not even want to build.
518
518
_ => continue ,
519
519
}
520
-
521
520
// Add user-defined args until first `--`.
522
521
while let Some ( arg) = args. next ( ) {
523
522
if arg == "--" {
@@ -553,10 +552,6 @@ fn in_cargo_miri() {
553
552
}
554
553
}
555
554
556
- fn host_triple ( ) -> String {
557
- rustc_version:: version_meta ( ) . unwrap ( ) . host
558
- }
559
-
560
555
fn inside_cargo_rustc ( ) {
561
556
let sysroot = std:: env:: var ( "MIRI_SYSROOT" ) . expect ( "The wrapper should have set MIRI_SYSROOT" ) ;
562
557
You can’t perform that action at this time.
0 commit comments