Attempt to fix clang-cmake-mips after r268977.

I think it's wiped out the build area and fully-reconfigured for the first time
since r268977. This seems to have caused Mips64 to become enabled when it wasn't
before because compiling with -mabi=64 succeeds but linking with -mabi=64 fails.

llvm-svn: 276256
This commit is contained in:
Daniel Sanders 2016-07-21 09:28:09 +00:00
parent f9d9077c84
commit 14086eae46
1 changed files with 6 additions and 0 deletions

View File

@ -2,6 +2,12 @@ include(BuiltinTests)
# Make all the tests only check the compiler
set(TEST_COMPILE_ONLY On)
# Temporary fix for Mips buildbots this broke. It's the linker that rejects
# inappropriate multilibs on this system.
check_compile_definition("__mips__" "" IS_MIPS_HOST)
if(IS_MIPS_HOST)
set(TEST_COMPILE_ONLY OFF)
endif()
builtin_check_c_compiler_flag(-fPIC COMPILER_RT_HAS_FPIC_FLAG)
builtin_check_c_compiler_flag(-fPIE COMPILER_RT_HAS_FPIE_FLAG)