diff --git a/cmake/compiler_flags.cmake b/cmake/compiler_flags.cmake index 6537703f976..2f6f5cdf96d 100644 --- a/cmake/compiler_flags.cmake +++ b/cmake/compiler_flags.cmake @@ -51,11 +51,11 @@ message(STATUS "Processor is : ${CMAKE_SYSTEM_PROCESSOR}") if (MSVC) ## enable 'AVX' on x86-64, to achive faster base64 en-/decoding via SIMDe ## note: MSVC lacks flags for SSE3/SSE4 (only unofficial ones like /d2archSSE42 are available, but SIMDe does not care about them) - if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "${x64_CPU}") + ##if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "${x64_CPU}") ## for SIMDe we need to use explicit compiler flags, which in turn define macros (like '#define __AVX__'), which SIMDe will check for and only then create vectorized code ## Disabling AVX will actually make the SIMDe code slower compared to the non-SSE version (for Base64 encoding/decoding at least) - add_compile_options(/arch:AVX) - endif() + ##add_compile_options(/arch:AVX) + ##endif() else() ## GCC/Clang/AppleClang ## enable SSE3 on x86, to achive faster base64 en-/decoding if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "${x64_CPU}") @@ -195,4 +195,4 @@ if (CXX_WARN_CONVERSION) add_compile_options(-Wconversion) endif() endif() -message(STATUS "Compiler checks for conversion: ${CXX_WARN_CONVERSION}") \ No newline at end of file +message(STATUS "Compiler checks for conversion: ${CXX_WARN_CONVERSION}")