summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Moinvaziri <nathan@nathanm.com>2021-03-19 19:38:42 -0700
committerHans Kristian Rosbach <hk-github@circlestorm.org>2021-03-20 23:36:04 +0100
commit2c8fd54fb8043597cbe526832ea8d0a94de6fe83 (patch)
tree8c44cb15ca23e17614f8ea25fa2acc06379fb741
parentf426ac9db3e0ce35c83838aa8eaf248b2b624d0a (diff)
Only perform auto-detection of floating point ABI on ARM arch. #895
Co-authored-by: zhangn1985 <zhangn1985@users.noreply.github.com>
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b39f132..514d2d4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -205,8 +205,8 @@ else()
if(NOT NATIVEFLAG)
if(__GNUC__)
if(BASEARCH_ARM_FOUND)
- if(NOT CMAKE_C_FLAGS MATCHES "-mfloat-abi")
- # Check support for ARM floating point
+ if("${ARCH}" MATCHES "arm" AND NOT CMAKE_C_FLAGS MATCHES "-mfloat-abi")
+ # Check support for ARM floating point ABI
execute_process(COMMAND ${CMAKE_C_COMPILER} "-dumpmachine"
OUTPUT_VARIABLE GCC_MACHINE)
if("${GCC_MACHINE}" MATCHES "gnueabihf")