mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-04 22:49:32 +03:00
Check for march=native before using it
This commit is contained in:
parent
d7f3d7679a
commit
62b6ccb03e
1 changed files with 4 additions and 1 deletions
|
@ -187,7 +187,10 @@ endif()
|
|||
|
||||
# Architecture flags
|
||||
if(${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "arm" AND NOT APPLE)
|
||||
list(APPEND mi_cflags -march=native)
|
||||
check_cxx_compiler_flag(-march=native CXX_SUPPORTS_MARCH_NATIVE)
|
||||
if (CXX_SUPPORTS_MARCH_NATIVE)
|
||||
list(APPEND mi_cflags -march=native)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# extra needed libraries
|
||||
|
|
Loading…
Add table
Reference in a new issue