Skip to content

Commit 786c0a3

Browse files
authored
Add sse options for use of intrinics with older compilers
1 parent a85ac71 commit 786c0a3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

cmake/cc.cmake

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,19 @@ if (NOT DYNAMIC_ARCH)
124124
if (HAVE_AVX)
125125
set (CCOMMON_OPT "${CCOMMON_OPT} -mavx")
126126
endif ()
127+
if (HAVE_SSE)
128+
set (CCOMMON_OPT "${CCOMMON_OPT} -msse")
129+
endif ()
130+
if (HAVE_SSE2)
131+
set (CCOMMON_OPT "${CCOMMON_OPT} -msse2")
132+
endif ()
127133
if (HAVE_SSE3)
128134
set (CCOMMON_OPT "${CCOMMON_OPT} -msse3")
129135
endif ()
130136
if (HAVE_SSSE3)
131137
set (CCOMMON_OPT "${CCOMMON_OPT} -mssse3")
132138
endif ()
139+
if (HAVE_SSE4_1)
140+
set (CCOMMON_OPT "${CCOMMON_OPT} -msse4.1")
141+
endif ()
133142
endif()

0 commit comments

Comments
 (0)