Don't set march=native on Apple Silicon

This commit is contained in:
Uwe L. Korn 2020-12-15 10:20:58 +01:00
parent 745cf1e2f5
commit d7f3d7679a

View File

@ -186,7 +186,7 @@ if(CMAKE_C_COMPILER_ID MATCHES "AppleClang|Clang|GNU|Intel" AND NOT CMAKE_SYSTEM
endif()
# Architecture flags
if(${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "arm")
if(${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "arm" AND NOT APPLE)
list(APPEND mi_cflags -march=native)
endif()