Skip to content

Commit

Permalink
rustbuild: Re-enable ThinLTO for MIPS
Browse files Browse the repository at this point in the history
Now that the upstream LLVM bug is now fixed this commit cherry-picks the commit
onto our LLVM and then re-enables the ThinLTO paths for MIPS.

Closes #45654
  • Loading branch information
alexcrichton committed Nov 6, 2017
1 parent 19402f1 commit ef0d843
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/bootstrap/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -625,8 +625,7 @@ impl<'a> Builder<'a> {

if mode != Mode::Libstd && // FIXME(#45320)
self.config.rust_codegen_units.is_none() &&
self.build.is_rust_llvm(compiler.host) &&
!target.contains("mips") // FIXME(#45654)
self.build.is_rust_llvm(compiler.host)
{
cargo.env("RUSTC_THINLTO", "1");
}
Expand Down
2 changes: 1 addition & 1 deletion src/llvm

0 comments on commit ef0d843

Please # to comment.