Don't check for SSE2 support on i386
authorAlberto Garcia <berto@igalia.com>
Wed, 18 May 2022 08:13:09 +0000 (09:13 +0100)
committerAlberto Garcia <berto@igalia.com>
Wed, 18 May 2022 08:13:09 +0000 (09:13 +0100)
Bug-Debian: https://bugs.debian.org/930935
Forwarded: no

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

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

Source/cmake/WebKitCompilerFlags.cmake

index 3429dd11bfb7b12a0ec15e4bd4561ae4782530a2..f6aeddc5403f8ca04c8c134011c9d29b294b3e27 100644 (file)
@@ -162,15 +162,6 @@ if (COMPILER_IS_GCC_OR_CLANG)
         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 ()
-
     # Makes builds faster. The GCC manual warns about the possibility that the assembler being
     # used may not support input from a pipe, but in practice the toolchains we support all do.
     WEBKIT_PREPEND_GLOBAL_COMPILER_FLAGS(-pipe)