summaryrefslogtreecommitdiff
path: root/cmake/builtin-config-ix.cmake
diff options
context:
space:
mode:
authorDaniel Sanders <daniel.sanders@imgtec.com>2016-07-21 09:28:09 +0000
committerDaniel Sanders <daniel.sanders@imgtec.com>2016-07-21 09:28:09 +0000
commit437846dba4fe87c163b783bf05ee739ff51cb091 (patch)
tree4e27706f275be99dab249351029b0d536a6fdcf9 /cmake/builtin-config-ix.cmake
parent1690c43ede4c1f356fcace36ddc9e7aff157fdd2 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@276256 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/builtin-config-ix.cmake')
-rw-r--r--cmake/builtin-config-ix.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/builtin-config-ix.cmake b/cmake/builtin-config-ix.cmake
index 432b1fadb..c4dc1565f 100644
--- a/cmake/builtin-config-ix.cmake
+++ b/cmake/builtin-config-ix.cmake
@@ -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)