File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -174,10 +174,9 @@ if(MSVC)
174
174
-Wno-unused-local-typedef
175
175
-Wno-microsoft-static -assert
176
176
-Wno-c++17-extensions
177
- -msse4.2
178
177
)
179
178
if ((CMAKE_SIZEOF_VOID_P MATCHES 8) AND MSVC_INTEL)
180
- add_compile_options (-mpclmul)
179
+ add_compile_options (-mpclmul -msse4.2 )
181
180
endif ()
182
181
endif ()
183
182
Original file line number Diff line number Diff line change @@ -69,6 +69,13 @@ IF(MSVC_INTEL)
69
69
ELSEIF (MSVC_ARM64)
70
70
SET (MYSYS_SOURCES ${MYSYS_SOURCES} crc32/crc32_arm64.c)
71
71
ADD_DEFINITIONS (-DHAVE_ARMV8_CRC -DHAVE_ARMV8_CRC_CRYPTO_INTRINSICS)
72
+ IF (CLANG_CL)
73
+ SET_SOURCE_FILES_PROPERTIES (
74
+ crc32/crc32_arm64.c
75
+ PROPERTIES
76
+ COMPILE_FLAGS "-march=armv8-a+crc"
77
+ )
78
+ ENDIF ()
72
79
ELSEIF (CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|amd64|i386|i686" )
73
80
SET (MYSYS_SOURCES ${MYSYS_SOURCES} crc32/crc32_x86.c crc32/crc32c_x86.cc)
74
81
IF (CMAKE_COMPILER_IS_GNUCC AND CMAKE_C_COMPILER_VERSION VERSION_LESS "5" )
You can’t perform that action at this time.
0 commit comments