Skip to content

Commit dc12e9d

Browse files
author
Lukas Markeffsky
committed
fix lto
1 parent 218e5b2 commit dc12e9d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/bootstrap/compile.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -362,12 +362,7 @@ pub fn std_cargo(builder: &Builder<'_>, target: TargetSelection, stage: u32, car
362362
// built with bitcode so that the produced rlibs can be used for both LTO
363363
// builds (which use bitcode) and non-LTO builds (which use object code).
364364
// So we override the override here!
365-
//
366-
// But we don't bother for the stage 0 compiler because it's never used
367-
// with LTO.
368-
if stage >= 1 {
369-
cargo.rustflag("-Cembed-bitcode=yes");
370-
}
365+
cargo.rustflag("-Cembed-bitcode=yes");
371366

372367
// By default, rustc does not include unwind tables unless they are required
373368
// for a particular target. They are not required by RISC-V targets, but

0 commit comments

Comments
 (0)