summaryrefslogtreecommitdiffstats
path: root/llvm/runtimes
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2018-04-11 05:18:03 +0000
committerPetr Hosek <phosek@chromium.org>2018-04-11 05:18:03 +0000
commit9b4035a85a9bb045a2ef4cda275b8545093a58fd (patch)
treeba654e028513a94399c8e0550208a5ac172013b4 /llvm/runtimes
parentdcdac965f1ce16e6d45949370c5b305e846d2f50 (diff)
downloadbcm5719-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.txt7
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})
OpenPOWER on IntegriCloud