Skip to content

Commit 832c943

Browse files
committed
rustbuild: Build libstd with ThinLTO
This commit moves the standard library to get compiled with multiple codegen units and ThinLTO like the compiler itself. This I would hope is the last major step towards closing out #45320
1 parent 8b22e70 commit 832c943

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/bootstrap/builder.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -623,8 +623,7 @@ impl<'a> Builder<'a> {
623623
cargo.arg("--release");
624624
}
625625

626-
if mode != Mode::Libstd && // FIXME(#45320)
627-
self.config.rust_codegen_units.is_none() &&
626+
if self.config.rust_codegen_units.is_none() &&
628627
self.build.is_rust_llvm(compiler.host) &&
629628
!target.contains("mips") // FIXME(#45654)
630629
{

0 commit comments

Comments
 (0)