Skip to content

Commit

Permalink
Do not assume NEON is present when cross-compiling for x86_64
Browse files Browse the repository at this point in the history
  • Loading branch information
malfet committed Dec 21, 2020
1 parent aea336d commit 9a1af6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/Modules/FindARM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
ENDIF (OMAP4_TRUE)

ELSEIF(CMAKE_SYSTEM_NAME MATCHES "Darwin")
IF(CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64")
IF(CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64" AND NOT CMAKE_OSX_ARCHITECTURES STREQUAL "x86_64")
set(NEON_FOUND true CACHE BOOL "NEON available on ARM64")
ENDIF()
EXEC_PROGRAM("/usr/sbin/sysctl -n machdep.cpu.features" OUTPUT_VARIABLE
Expand Down

0 comments on commit 9a1af6f

Please sign in to comment.