Skip to content

Commit

Permalink
rustbuild: Build libstd with ThinLTO
Browse files Browse the repository at this point in the history
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 rust-lang#45320
  • Loading branch information
alexcrichton committed Oct 31, 2017
1 parent 8b22e70 commit 832c943
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/bootstrap/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -623,8 +623,7 @@ impl<'a> Builder<'a> {
cargo.arg("--release");
}

if mode != Mode::Libstd && // FIXME(#45320)
self.config.rust_codegen_units.is_none() &&
if self.config.rust_codegen_units.is_none() &&
self.build.is_rust_llvm(compiler.host) &&
!target.contains("mips") // FIXME(#45654)
{
Expand Down

0 comments on commit 832c943

Please sign in to comment.