mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-01-14 08:37:59 +08:00
Don't set march=native on Apple Silicon
This commit is contained in:
parent
745cf1e2f5
commit
d7f3d7679a
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user