Don't check for SSE2 support on i386
authorAlberto Garcia <berto@igalia.com>
Thu, 17 Feb 2022 18:52:20 +0000 (18:52 +0000)
committerAlberto Garcia <berto@igalia.com>
Thu, 17 Feb 2022 18:52:20 +0000 (18:52 +0000)
Bug-Debian: https://bugs.debian.org/930935
Forwarded: no

===================================================================

Gbp-Pq: Name dont-detect-sse2.patch

Source/cmake/WebKitCompilerFlags.cmake

index 77ebb802ebb03450b5e96629a47b6819a68672c6..6304f7fed981a159f5ab19f499d2a9bb0602fa4f 100644 (file)
@@ -148,15 +148,6 @@ if (COMPILER_IS_GCC_OR_CLANG)
     if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
         WEBKIT_PREPEND_GLOBAL_COMPILER_FLAGS(-Wno-expansion-to-defined)
     endif ()
-
-    # Force SSE2 fp on x86 builds.
-    if (WTF_CPU_X86 AND NOT CMAKE_CROSSCOMPILING)
-        WEBKIT_PREPEND_GLOBAL_COMPILER_FLAGS(-msse2 -mfpmath=sse)
-        include(DetectSSE2)
-        if (NOT SSE2_SUPPORT_FOUND)
-            message(FATAL_ERROR "SSE2 support is required to compile WebKit")
-        endif ()
-    endif ()
 endif ()
 
 if (COMPILER_IS_GCC_OR_CLANG AND NOT MSVC)