]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fixed incorrect flag used for SSE 4.2 support with ClangCl.
authorNathan Moinvaziri <nathan@nathanm.com>
Sat, 25 Dec 2021 00:42:23 +0000 (16:42 -0800)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Fri, 7 Jan 2022 13:55:23 +0000 (14:55 +0100)
cmake/detect-intrinsics.cmake

index c6085018a6fe164c1e6d49c4a143b295cf3f49de..39ae19ae968bff0bd6b1451dfc75de4ad3c18d39 100644 (file)
@@ -221,7 +221,7 @@ macro(check_sse4_intrinsics)
         endif()
     elseif(CMAKE_C_COMPILER_ID MATCHES "GNU" OR CMAKE_C_COMPILER_ID MATCHES "Clang")
         if(NOT NATIVEFLAG)
-            set(SSE4FLAG "-msse4")
+            set(SSE4FLAG "-msse4.2")
         endif()
     endif()
     # Check whether compiler supports SSE4 CRC inline asm