mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-05 15:09:31 +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,8 +187,11 @@ endif()
|
||||||
|
|
||||||
# Architecture flags
|
# Architecture flags
|
||||||
if(${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "arm" AND NOT APPLE)
|
if(${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "arm" AND NOT APPLE)
|
||||||
|
check_cxx_compiler_flag(-march=native CXX_SUPPORTS_MARCH_NATIVE)
|
||||||
|
if (CXX_SUPPORTS_MARCH_NATIVE)
|
||||||
list(APPEND mi_cflags -march=native)
|
list(APPEND mi_cflags -march=native)
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
# extra needed libraries
|
# extra needed libraries
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
|
|
Loading…
Add table
Reference in a new issue