diff options
author | Petr Hosek <phosek@chromium.org> | 2018-04-11 05:18:03 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2018-04-11 05:18:03 +0000 |
commit | 9b4035a85a9bb045a2ef4cda275b8545093a58fd (patch) | |
tree | ba654e028513a94399c8e0550208a5ac172013b4 /llvm/runtimes | |
parent | dcdac965f1ce16e6d45949370c5b305e846d2f50 (diff) | |
download | bcm5719-llvm-9b4035a85a9bb045a2ef4cda275b8545093a58fd.tar.gz bcm5719-llvm-9b4035a85a9bb045a2ef4cda275b8545093a58fd.zip |
[CMake][runtimes] Process common options in runtimes build
This was removed in D39932 but turned out this is actually needed
because runtimes such as compiler-rt and libc++ rely on common options
processing for setting certain flags such as -ffunction-sections and
-fdata-sections.
Differential Revision: https://reviews.llvm.org/D45507
llvm-svn: 329778
Diffstat (limited to 'llvm/runtimes')
-rw-r--r-- | llvm/runtimes/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/runtimes/CMakeLists.txt b/llvm/runtimes/CMakeLists.txt index c020b851bb9..06581b3c8f6 100644 --- a/llvm/runtimes/CMakeLists.txt +++ b/llvm/runtimes/CMakeLists.txt @@ -107,6 +107,13 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}) endif() endif() + # Avoid checking whether the compiler is working. + set(LLVM_COMPILER_CHECKED ON) + + # Handle common options used by all runtimes. + include(AddLLVM) + include(HandleLLVMOptions) + set(CMAKE_REQUIRED_FLAGS ${SAFE_CMAKE_REQUIRED_FLAGS}) set(CMAKE_REQUIRED_LIBRARIES ${SAFE_CMAKE_REQUIRED_LIBRARIES}) |