[compiler-rt] r276256 - Attempt to fix clang-cmake-mips after r268977.

Daniel Sanders via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 21 02:28:09 PDT 2016


Author: dsanders
Date: Thu Jul 21 04:28:09 2016
New Revision: 276256

URL: http://llvm.org/viewvc/llvm-project?rev=276256&view=rev
Log:
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.


Modified:
    compiler-rt/trunk/cmake/builtin-config-ix.cmake

Modified: compiler-rt/trunk/cmake/builtin-config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/cmake/builtin-config-ix.cmake?rev=276256&r1=276255&r2=276256&view=diff
==============================================================================
--- compiler-rt/trunk/cmake/builtin-config-ix.cmake (original)
+++ compiler-rt/trunk/cmake/builtin-config-ix.cmake Thu Jul 21 04:28:09 2016
@@ -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)




More information about the llvm-commits mailing list