Index: llvm/trunk/runtimes/CMakeLists.txt =================================================================== --- llvm/trunk/runtimes/CMakeLists.txt +++ llvm/trunk/runtimes/CMakeLists.txt @@ -107,6 +107,13 @@ 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})