From 0f771ed5ef83556451e1736f22b1a11054dc81c3 Mon Sep 17 00:00:00 2001 From: Victor Costan Date: Wed, 27 Sep 2017 08:48:22 -0700 Subject: [PATCH] Fix SSE4.2 arch flag for MSVC in CMake config. (#8) 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. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4e5c2a8..793390b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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")