File tree Expand file tree Collapse file tree 3 files changed +6
-11
lines changed
src/bootstrap/src/core/build_steps Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -350,7 +350,7 @@ impl Step for CodegenBackend {
350350 cargo
351351 . arg ( "--manifest-path" )
352352 . arg ( builder. src . join ( format ! ( "compiler/rustc_codegen_{backend}/Cargo.toml" ) ) ) ;
353- rustc_cargo_env ( builder, & mut cargo, target, build_compiler . stage ) ;
353+ rustc_cargo_env ( builder, & mut cargo, target) ;
354354
355355 let _guard = builder. msg_check ( format ! ( "rustc_codegen_{backend}" ) , target, None ) ;
356356
Original file line number Diff line number Diff line change @@ -1316,15 +1316,10 @@ pub fn rustc_cargo(
13161316 cargo. env ( "RUSTC_WRAPPER" , ccache) ;
13171317 }
13181318
1319- rustc_cargo_env ( builder, cargo, target, build_compiler . stage ) ;
1319+ rustc_cargo_env ( builder, cargo, target) ;
13201320}
13211321
1322- pub fn rustc_cargo_env (
1323- builder : & Builder < ' _ > ,
1324- cargo : & mut Cargo ,
1325- target : TargetSelection ,
1326- _build_stage : u32 ,
1327- ) {
1322+ pub fn rustc_cargo_env ( builder : & Builder < ' _ > , cargo : & mut Cargo , target : TargetSelection ) {
13281323 // Set some configuration variables picked up by build scripts and
13291324 // the compiler alike
13301325 cargo
@@ -1664,7 +1659,7 @@ impl Step for CodegenBackend {
16641659 cargo
16651660 . arg ( "--manifest-path" )
16661661 . arg ( builder. src . join ( format ! ( "compiler/rustc_codegen_{backend}/Cargo.toml" ) ) ) ;
1667- rustc_cargo_env ( builder, & mut cargo, target, compiler . stage ) ;
1662+ rustc_cargo_env ( builder, & mut cargo, target) ;
16681663
16691664 // Ideally, we'd have a separate step for the individual codegen backends,
16701665 // like we have in tests (test::CodegenGCC) but that would require a lot of restructuring.
Original file line number Diff line number Diff line change @@ -3386,7 +3386,7 @@ impl Step for CodegenCranelift {
33863386 cargo
33873387 . arg ( "--manifest-path" )
33883388 . arg ( builder. src . join ( "compiler/rustc_codegen_cranelift/build_system/Cargo.toml" ) ) ;
3389- compile:: rustc_cargo_env ( builder, & mut cargo, target, compiler . stage ) ;
3389+ compile:: rustc_cargo_env ( builder, & mut cargo, target) ;
33903390
33913391 // Avoid incremental cache issues when changing rustc
33923392 cargo. env ( "CARGO_BUILD_INCREMENTAL" , "false" ) ;
@@ -3518,7 +3518,7 @@ impl Step for CodegenGCC {
35183518 cargo
35193519 . arg ( "--manifest-path" )
35203520 . arg ( builder. src . join ( "compiler/rustc_codegen_gcc/build_system/Cargo.toml" ) ) ;
3521- compile:: rustc_cargo_env ( builder, & mut cargo, target, compiler . stage ) ;
3521+ compile:: rustc_cargo_env ( builder, & mut cargo, target) ;
35223522 add_cg_gcc_cargo_flags ( & mut cargo, & gcc) ;
35233523
35243524 // Avoid incremental cache issues when changing rustc
You can’t perform that action at this time.
0 commit comments