llvm-project/compiler-rt/cmake/Modules
Bob Haarman 1012fe8a54 [compiler-rt] build compiler-rt runtimes without LTO
Summary: Currently, we build the compiler-rt runtimes with link-time optimization if LTO is configured for the LLVM project. This will break external programs that don't invoke the linker in such a way that it supports LLVM's LTO. To avoid this, this change causes the compiler-rt runtimes to be compiled with -fno-lto. This also makes the check-profile tests work on systems when doing a lld LTO build on a system where the system linker does not support LLVM LTO.

Reviewers: rnk, davidxl

Reviewed By: davidxl

Subscribers: dberris, mgorny, llvm-commits, mehdi_amini

Differential Revision: https://reviews.llvm.org/D31218

llvm-svn: 298525
2017-03-22 17:25:49 +00:00
..
AddCompilerRT.cmake [compiler-rt] build compiler-rt runtimes without LTO 2017-03-22 17:25:49 +00:00
BuiltinTests.cmake Really fix warnings about passing -std=gnu99 to MSVC 2016-09-08 16:25:34 +00:00
CompilerRTCompile.cmake [CMake] Use LLVM_MAIN_SRC_DIR instead of LLVM_SOURCE_DIR. 2016-02-01 21:08:16 +00:00
CompilerRTDarwinUtils.cmake [compiler-rt] respect CMAKE_EXE_LINKER_FLAGS in compiler and library tests 2017-03-21 18:25:35 +00:00
CompilerRTLink.cmake Make cmake link flag naming consistent 2017-01-10 04:33:04 +00:00
CompilerRTUtils.cmake [compiler-rt] respect CMAKE_EXE_LINKER_FLAGS in compiler and library tests 2017-03-21 18:25:35 +00:00
SanitizerUtils.cmake Make cmake link flag naming consistent 2017-01-10 04:33:04 +00:00