diff options
| author | bors <bors@rust-lang.org> | 2015-07-23 23:38:36 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-07-23 23:38:36 +0000 |
| commit | 69ca0125641db798f072f9a0f5d838686255eb37 (patch) | |
| tree | a40c4e76e40aaea44cddb9ed3284419e5ffa609a /src/libstd/sys/unix/stack_overflow.rs | |
| parent | c85ba3e9cb4620c6ec8273a34cce6707e91778cb (diff) | |
| parent | 70e8220166744045780fd1c658f796df6a99a936 (diff) | |
| download | rust-69ca0125641db798f072f9a0f5d838686255eb37.tar.gz rust-69ca0125641db798f072f9a0f5d838686255eb37.zip | |
Auto merge of #27224 - alexcrichton:configure-lto-right, r=brson
The LTO pass in the compiler forgot to call the `LLVMRustAddBuilderLibraryInfo` function and configure other options such as merge_functions, vectorize_slp, etc. This ended up causing linker errors on MSVC targets because the optimizer didn't have the right knowledge that some system functions are missing on these platforms. This commit consolidates creation of PassManagerBuilder instances to one function which is then called when needed. This ensures that the pass manager is always correctly configured with the various target-specific information that LLVM needs. Overall, this fixes `-C lto -C opt-level=3` on 32-bit MSVC targets.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
