Skip to content

Commit 7c19866

Browse files
authored
fallback from cooperlake to skylake if gcc<10
1 parent 71d33c9 commit 7c19866

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/cc.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ if (${CORE} STREQUAL "COOPERLAKE")
110110
execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION)
111111
if (${GCC_VERSION} VERSION_GREATER 10.1 OR ${GCC_VERSION} VERSION_EQUAL 10.1)
112112
set (CCOMMON_OPT = "${CCOMMON_OPT} -march=cooperlake")
113+
else ()
114+
set (CCOMMON_OPT "${CCOMMON_OPT} -march=skylake-avx512")
113115
endif()
114116
endif ()
115117
endif ()

0 commit comments

Comments
 (0)