We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f4dc74 commit 430f741Copy full SHA for 430f741
cmake/cc.cmake
@@ -107,7 +107,10 @@ endif ()
107
if (${CORE} STREQUAL "COOPERLAKE")
108
if (NOT DYNAMIC_ARCH)
109
if (NOT NO_AVX512)
110
- set (CCOMMON_OPT = "${CCOMMON_OPT} -march=cooperlake")
+ execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION)
111
+ if (${GCC_VERSION} VERSION_GREATER 10.1 OR ${GCC_VERSION} VERSION_EQUAL 10.1)
112
+ set (CCOMMON_OPT = "${CCOMMON_OPT} -march=cooperlake")
113
+ endif()
114
endif ()
115
116
0 commit comments