Skip to content

Commit

Permalink
Only perform auto-detection of floating point ABI on ARM arch.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoinvaz committed Mar 20, 2021
1 parent bc33b26 commit 9384480
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 9384480

Please sign in to comment.