Skip to content

Commit

Permalink
rustbuild: Disable ThinLTO for libtest
Browse files Browse the repository at this point in the history
Right now ThinLTO is generating bad dwarf which is tracked by rust-lang#45511, but this
is causing issues on OSX (rust-lang#45768) where `dsymutil` is segfaulting and failing to
produce output.

Closes rust-lang#45768
  • Loading branch information
alexcrichton committed Nov 10, 2017
1 parent d5ff0e6 commit f6cc9ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bootstrap/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,7 @@ impl<'a> Builder<'a> {
}

if mode != Mode::Libstd && // FIXME(#45320)
mode != Mode::Libtest && // FIXME(#45511)
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 f6cc9ee

Please sign in to comment.