Skip to content

Commit

Permalink
Fix SSE4.2 arch flag for MSVC in CMake config. (google#8)
Browse files Browse the repository at this point in the history
The old flag was a copy-paste error. We only use /arch:NOTYET for the
ARM64-specific hardware accelerated implementation, because Visual Studio
does not yet have an equivalent to -march=armv8-a+crc+crypto.
  • Loading branch information
pwnall authored and cmumford committed Sep 27, 2017
1 parent 9a58163 commit 0f771ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ target_sources(crc32c_sse42
)
if(HAVE_SSE42)
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
target_compile_options(crc32c_sse42 PRIVATE "/arch:NOTYET")
target_compile_options(crc32c_sse42 PRIVATE "/arch:AVX")
else(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
target_compile_options(crc32c_sse42 PRIVATE "-msse4.2")
endif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
Expand Down

0 comments on commit 0f771ed

Please sign in to comment.