cmake-arm-version-hack
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Fri, 4 Nov 2016 00:33:12 +0000 (00:33 +0000)
committerRaspbian forward porter <root@raspbian.org>
Fri, 4 Nov 2016 00:33:12 +0000 (00:33 +0000)
Gbp-Pq: Name cmake-arm-version-hack.patch

autoconf/config.guess.hack [new file with mode: 0644]
cmake/modules/GetHostTriple.cmake
compiler-rt/cmake/config-ix.cmake

diff --git a/autoconf/config.guess.hack b/autoconf/config.guess.hack
new file mode 100644 (file)
index 0000000..13b18bf
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/bash -e
+$(dirname "$0")/config.guess | sed -r s/arm[a-zA-Z0-9]*/armv6/
index 671a8ce7d7ce2e0b3f99516f3424fd38573568ba..40ccf04a31e5e84b58ec7e5888b36587dbe40e1b 100644 (file)
@@ -15,7 +15,7 @@ function( get_host_triple var )
       set( value "i686-pc-mingw32" )
     endif()
   else( MSVC )
-    set(config_guess ${LLVM_MAIN_SRC_DIR}/autoconf/config.guess)
+    set(config_guess ${LLVM_MAIN_SRC_DIR}/autoconf/config.guess.hack)
     execute_process(COMMAND sh ${config_guess}
       RESULT_VARIABLE TT_RV
       OUTPUT_VARIABLE TT_OUT
index 66666e2a21409f1087d90fa701a766bc8f293496..cb6840c0c2d1ab0817b276323f8c515dcf9cee78 100644 (file)
@@ -220,8 +220,8 @@ elseif(NOT APPLE) # Supported archs for Apple platforms are generated later
     test_target_arch(mips "" "-mips32r2" "--target=mips-linux-gnu")
     test_target_arch(mips64 "" "-mips64r2" "--target=mips64-linux-gnu" "-mabi=n64")
   elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "arm")
-    test_target_arch(arm "" "-march=armv7-a" "-mfloat-abi=soft")
-    test_target_arch(armhf "" "-march=armv7-a" "-mfloat-abi=hard")
+    test_target_arch(arm "" "" "-mfloat-abi=soft")
+    test_target_arch(armhf "" "" "-mfloat-abi=hard")
   elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "aarch32")
     test_target_arch(aarch32 "" "-march=armv8-a")
   elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "aarch64")