@@ -1410,6 +1410,7 @@ impl Step for Miri {
1410
1410
#[ derive( Debug , Clone , Hash , PartialEq , Eq ) ]
1411
1411
pub struct CraneliftCodegenBackend {
1412
1412
pub build_compiler : Compiler ,
1413
+ pub target : TargetSelection ,
1413
1414
}
1414
1415
1415
1416
impl Step for CraneliftCodegenBackend {
@@ -1437,6 +1438,7 @@ impl Step for CraneliftCodegenBackend {
1437
1438
run. builder . config . host_target ,
1438
1439
run. target ,
1439
1440
) ,
1441
+ target : run. target ,
1440
1442
} ) ;
1441
1443
}
1442
1444
@@ -1448,7 +1450,7 @@ impl Step for CraneliftCodegenBackend {
1448
1450
return None ;
1449
1451
}
1450
1452
1451
- let target = self . build_compiler . host ;
1453
+ let target = self . target ;
1452
1454
let compilers =
1453
1455
RustcPrivateCompilers :: from_build_compiler ( builder, self . build_compiler , target) ;
1454
1456
if !target_supports_cranelift_backend ( target) {
@@ -1608,6 +1610,7 @@ impl Step for Extended {
1608
1610
add_component ! ( "analysis" => Analysis { compiler, target } ) ;
1609
1611
add_component ! ( "rustc-codegen-cranelift" => CraneliftCodegenBackend {
1610
1612
build_compiler: compiler,
1613
+ target
1611
1614
} ) ;
1612
1615
add_component ! ( "llvm-bitcode-linker" => LlvmBitcodeLinker {
1613
1616
build_compiler: compiler,
0 commit comments