Add correct flags for CLANG_CL
@@ -2385,15 +2385,7 @@ SSE41_CFLAGS=
AVX_CFLAGS=
AVX2_CFLAGS=
when ($ARCH_X86_64 || $ARCH_I386) {
- when ($MSVC) {
- SSE2_CFLAGS=/D__SSE2__=1
- SSE3_CFLAGS=/D__SSE3__=1
- SSSE3_CFLAGS=/D__SSSE3__=1
- SSE41_CFLAGS=/D__SSE41__=1
- AVX_CFLAGS=/arch:AVX
- AVX2_CFLAGS=/arch:AVX2
- }
- elsewhen ($CLANG || $GCC) {
+ when ($CLANG || $CLANG_CL || $GCC) {
SSE2_CFLAGS=-msse2
SSE3_CFLAGS=-msse3
SSSE3_CFLAGS=-mssse3
@@ -2401,6 +2393,14 @@ when ($ARCH_X86_64 || $ARCH_I386) {
AVX_CFLAGS=-mavx
AVX2_CFLAGS=-mavx2
}
+ elsewhen ($MSVC) {
+ SSE2_CFLAGS=/D__SSE2__=1
+ SSE3_CFLAGS=/D__SSE3__=1
+ SSSE3_CFLAGS=/D__SSSE3__=1
+ SSE41_CFLAGS=/D__SSE41__=1
+ AVX_CFLAGS=/arch:AVX
+ AVX2_CFLAGS=/arch:AVX2
+ }
}
### Generic macro definition for _SRC (just a placeholder, it does nothing)
