@@ -1410,6 +1410,7 @@ impl Step for Miri {
14101410#[ derive( Debug , Clone , Hash , PartialEq , Eq ) ]
14111411pub struct CraneliftCodegenBackend {
14121412 pub build_compiler : Compiler ,
1413+ pub target : TargetSelection ,
14131414}
14141415
14151416impl Step for CraneliftCodegenBackend {
@@ -1437,6 +1438,7 @@ impl Step for CraneliftCodegenBackend {
14371438 run. builder . config . host_target ,
14381439 run. target ,
14391440 ) ,
1441+ target : run. target ,
14401442 } ) ;
14411443 }
14421444
@@ -1448,7 +1450,7 @@ impl Step for CraneliftCodegenBackend {
14481450 return None ;
14491451 }
14501452
1451- let target = self . build_compiler . host ;
1453+ let target = self . target ;
14521454 let compilers =
14531455 RustcPrivateCompilers :: from_build_compiler ( builder, self . build_compiler , target) ;
14541456 if !target_supports_cranelift_backend ( target) {
@@ -1608,6 +1610,7 @@ impl Step for Extended {
16081610 add_component ! ( "analysis" => Analysis { compiler, target } ) ;
16091611 add_component ! ( "rustc-codegen-cranelift" => CraneliftCodegenBackend {
16101612 build_compiler: compiler,
1613+ target
16111614 } ) ;
16121615 add_component ! ( "llvm-bitcode-linker" => LlvmBitcodeLinker {
16131616 build_compiler: compiler,
0 commit comments