We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 489f101 commit 086b078Copy full SHA for 086b078
CMakeLists.txt
@@ -272,7 +272,11 @@ else()
272
endif(CMAKE_SYSTEM_PROCESSOR MATCHES "x86|x86_64|AMD64|amd64|i386|i686")
273
274
if(HAVE_NEON)
275
- set(NEON_COMPILE_FLAGS "-mfpu=neon")
+ # -mfpu compiler option is not available for aarch64
276
+ # see: https://gcc.gnu.org/onlinedocs/gcc/AArch64-Options.html
277
+ if(NOT CMAKE_SYSTEM_PROCESSOR MATCHES "arm64|aarch64.*|AARCH64.*")
278
+ set(NEON_COMPILE_FLAGS "-mfpu=neon")
279
+ endif(NOT CMAKE_SYSTEM_PROCESSOR MATCHES "arm64|aarch64.*|AARCH64.*")
280
message(STATUS "LTO build is not supported on arm/RBPi.")
281
set(ENABLE_LTO FALSE) # enable LTO cause fatal error on arm/RBPi
282
endif()
0 commit comments