Skip to content

Commit

Permalink
Merge pull request #2158 from martin-frbg/issue2143
Browse files Browse the repository at this point in the history
Remove any inadvertent use of -march=native from DYNAMIC_ARCH builds
  • Loading branch information
martin-frbg committed Jun 10, 2019
2 parents be8f70d + 1f4b6a5 commit ece0bfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/arch.cmake
Expand Up @@ -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 ()
Expand Down

0 comments on commit ece0bfb

Please sign in to comment.