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 #45511, but this
is causing issues on OSX (#45768) where `dsymutil` is segfaulting and failing to
produce output.

Closes #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.