File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -109,10 +109,25 @@ if (${CORE} STREQUAL "COOPERLAKE")
109
109
if (NOT NO_AVX512 )
110
110
execute_process (COMMAND ${CMAKE_C_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION )
111
111
if (${GCC_VERSION} VERSION_GREATER 10.1 OR ${GCC_VERSION} VERSION_EQUAL 10.1 )
112
- set (CCOMMON_OPT = "${CCOMMON_OPT} -march=cooperlake" )
112
+ set (CCOMMON_OPT "${CCOMMON_OPT} -march=cooperlake" )
113
113
else ()
114
114
set (CCOMMON_OPT "${CCOMMON_OPT} -march=skylake-avx512" )
115
115
endif ()
116
116
endif ()
117
117
endif ()
118
118
endif ()
119
+
120
+ if (NOT DYNAMIC_ARCH )
121
+ if (HAVE_AVX2 )
122
+ set (CCOMMON_OPT "${CCOMMON_OPT} -mavx2" )
123
+ endif ()
124
+ if (HAVE_AVX )
125
+ set (CCOMMON_OPT "${CCOMMON_OPT} -mavx" )
126
+ endif ()
127
+ if (HAVE_SSE3 )
128
+ set (CCOMMON_OPT "${CCOMMON_OPT} -msse3" )
129
+ endif ()
130
+ if (HAVE_SSSE3 )
131
+ set (CCOMMON_OPT "${CCOMMON_OPT} -mssse3" )
132
+ endif ()
133
+ endif ()
You can’t perform that action at this time.
0 commit comments