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 {
350
350
cargo
351
351
. arg ( "--manifest-path" )
352
352
. 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) ;
354
354
355
355
let _guard = builder. msg_check ( format ! ( "rustc_codegen_{backend}" ) , target, None ) ;
356
356
Original file line number Diff line number Diff line change @@ -1316,15 +1316,10 @@ pub fn rustc_cargo(
1316
1316
cargo. env ( "RUSTC_WRAPPER" , ccache) ;
1317
1317
}
1318
1318
1319
- rustc_cargo_env ( builder, cargo, target, build_compiler . stage ) ;
1319
+ rustc_cargo_env ( builder, cargo, target) ;
1320
1320
}
1321
1321
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 ) {
1328
1323
// Set some configuration variables picked up by build scripts and
1329
1324
// the compiler alike
1330
1325
cargo
@@ -1664,7 +1659,7 @@ impl Step for CodegenBackend {
1664
1659
cargo
1665
1660
. arg ( "--manifest-path" )
1666
1661
. 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) ;
1668
1663
1669
1664
// Ideally, we'd have a separate step for the individual codegen backends,
1670
1665
// 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 {
3386
3386
cargo
3387
3387
. arg ( "--manifest-path" )
3388
3388
. 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) ;
3390
3390
3391
3391
// Avoid incremental cache issues when changing rustc
3392
3392
cargo. env ( "CARGO_BUILD_INCREMENTAL" , "false" ) ;
@@ -3518,7 +3518,7 @@ impl Step for CodegenGCC {
3518
3518
cargo
3519
3519
. arg ( "--manifest-path" )
3520
3520
. 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) ;
3522
3522
add_cg_gcc_cargo_flags ( & mut cargo, & gcc) ;
3523
3523
3524
3524
// Avoid incremental cache issues when changing rustc
You can’t perform that action at this time.
0 commit comments