@@ -269,7 +269,7 @@ impl Step for Std {
269269 target,
270270 Kind :: Build ,
271271 ) ;
272- std_cargo ( builder, target, compiler . stage , & mut cargo) ;
272+ std_cargo ( builder, target, & mut cargo) ;
273273 for krate in & * self . crates {
274274 cargo. arg ( "-p" ) . arg ( krate) ;
275275 }
@@ -497,7 +497,7 @@ fn compiler_rt_for_profiler(builder: &Builder<'_>) -> PathBuf {
497497
498498/// Configure cargo to compile the standard library, adding appropriate env vars
499499/// 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 ) {
501501 // rustc already ensures that it builds with the minimum deployment
502502 // target, so ideally we shouldn't need to do anything here.
503503 //
@@ -645,12 +645,8 @@ pub fn std_cargo(builder: &Builder<'_>, target: TargetSelection, stage: u32, car
645645 // built with bitcode so that the produced rlibs can be used for both LTO
646646 // builds (which use bitcode) and non-LTO builds (which use object code).
647647 // 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+
654650 if builder. config . rust_lto == RustcLto :: Off {
655651 cargo. rustflag ( "-Clto=off" ) ;
656652 }
0 commit comments