Merge pull request #2158 from martin-frbg/issue2143
Remove any inadvertent use of -march=native from DYNAMIC_ARCH builds
This commit is contained in:
commit
ece0bfb881
|
@ -73,6 +73,7 @@ if (DYNAMIC_ARCH)
|
||||||
endif ()
|
endif ()
|
||||||
if (NOT NO_AVX512)
|
if (NOT NO_AVX512)
|
||||||
set(DYNAMIC_CORE ${DYNAMIC_CORE} SKYLAKEX)
|
set(DYNAMIC_CORE ${DYNAMIC_CORE} SKYLAKEX)
|
||||||
|
string(REGEX REPLACE "-march=native" "" CMAKE_C_FLAGS ${CMAKE_C_FLAGS})
|
||||||
endif ()
|
endif ()
|
||||||
if (DYNAMIC_LIST)
|
if (DYNAMIC_LIST)
|
||||||
set(DYNAMIC_CORE PRESCOTT ${DYNAMIC_LIST})
|
set(DYNAMIC_CORE PRESCOTT ${DYNAMIC_LIST})
|
||||||
|
|
Loading…
Reference in New Issue