@@ -269,7 +269,7 @@ impl Step for Std {
269
269
target,
270
270
Kind :: Build ,
271
271
) ;
272
- std_cargo ( builder, target, compiler . stage , & mut cargo) ;
272
+ std_cargo ( builder, target, & mut cargo) ;
273
273
for krate in & * self . crates {
274
274
cargo. arg ( "-p" ) . arg ( krate) ;
275
275
}
@@ -497,7 +497,7 @@ fn compiler_rt_for_profiler(builder: &Builder<'_>) -> PathBuf {
497
497
498
498
/// Configure cargo to compile the standard library, adding appropriate env vars
499
499
/// and such.
500
- pub fn std_cargo ( builder : & Builder < ' _ > , target : TargetSelection , stage : u32 , cargo : & mut Cargo ) {
500
+ pub fn std_cargo ( builder : & Builder < ' _ > , target : TargetSelection , cargo : & mut Cargo ) {
501
501
// rustc already ensures that it builds with the minimum deployment
502
502
// target, so ideally we shouldn't need to do anything here.
503
503
//
@@ -645,12 +645,8 @@ pub fn std_cargo(builder: &Builder<'_>, target: TargetSelection, stage: u32, car
645
645
// built with bitcode so that the produced rlibs can be used for both LTO
646
646
// builds (which use bitcode) and non-LTO builds (which use object code).
647
647
// So we override the override here!
648
- //
649
- // But we don't bother for the stage 0 compiler because it's never used
650
- // with LTO.
651
- if stage >= 1 {
652
- cargo. rustflag ( "-Cembed-bitcode=yes" ) ;
653
- }
648
+ cargo. rustflag ( "-Cembed-bitcode=yes" ) ;
649
+
654
650
if builder. config . rust_lto == RustcLto :: Off {
655
651
cargo. rustflag ( "-Clto=off" ) ;
656
652
}
0 commit comments