Skip to content

Commit

Permalink
Only perform auto-detection of floating point ABI on ARM arch. #895
Browse files Browse the repository at this point in the history
Co-authored-by: zhangn1985 <zhangn1985@users.noreply.github.com>
  • Loading branch information
2 people authored and Dead2 committed Mar 20, 2021
1 parent f426ac9 commit 2c8fd54
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 2c8fd54

Please sign in to comment.