llvm.org GIT mirror llvm / 84029d7
[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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@329778 91177308-0d34-0410-b5e6-96231b3b80d8 Petr Hosek 2 years ago
1 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
105105 list(APPEND CMAKE_REQUIRED_LIBRARIES c)
106106 endif()
107107 endif()
108
109 # Avoid checking whether the compiler is working.
110 set(LLVM_COMPILER_CHECKED ON)
111
112 # Handle common options used by all runtimes.
113 include(AddLLVM)
114 include(HandleLLVMOptions)
108115
109116 set(CMAKE_REQUIRED_FLAGS ${SAFE_CMAKE_REQUIRED_FLAGS})
110117 set(CMAKE_REQUIRED_LIBRARIES ${SAFE_CMAKE_REQUIRED_LIBRARIES})