Merge pull request #2158 from martin-frbg/issue2143

Remove any inadvertent use of -march=native from DYNAMIC_ARCH builds
This commit is contained in:
Martin Kroeker 2019-06-10 14:08:11 +02:00 committed by GitHub
commit ece0bfb881
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -73,7 +73,8 @@ if (DYNAMIC_ARCH)
endif ()
if (NOT NO_AVX512)
set(DYNAMIC_CORE ${DYNAMIC_CORE} SKYLAKEX)
endif ()
string(REGEX REPLACE "-march=native" "" CMAKE_C_FLAGS ${CMAKE_C_FLAGS})
endif ()
if (DYNAMIC_LIST)
set(DYNAMIC_CORE PRESCOTT ${DYNAMIC_LIST})
endif ()