Skip to content

Commit

Permalink
fix lto
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Markeffsky committed Dec 28, 2022
1 parent 218e5b2 commit dc12e9d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/bootstrap/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,12 +362,7 @@ pub fn std_cargo(builder: &Builder<'_>, target: TargetSelection, stage: u32, car
// built with bitcode so that the produced rlibs can be used for both LTO
// builds (which use bitcode) and non-LTO builds (which use object code).
// So we override the override here!
//
// But we don't bother for the stage 0 compiler because it's never used
// with LTO.
if stage >= 1 {
cargo.rustflag("-Cembed-bitcode=yes");
}
cargo.rustflag("-Cembed-bitcode=yes");

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

0 comments on commit dc12e9d

Please sign in to comment.