Don't check for SSE2 support on i386
authorAlberto Garcia <berto@igalia.com>
Fri, 15 Sep 2023 12:49:49 +0000 (13:49 +0100)
committerAlberto Garcia <berto@igalia.com>
Fri, 15 Sep 2023 12:49:49 +0000 (13:49 +0100)
Bug-Debian: https://bugs.debian.org/930935
Forwarded: no

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

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

Source/ThirdParty/ANGLE/src/common/platform.h
Source/cmake/WebKitCompilerFlags.cmake

index edadfcde6265fc4560f8be3b14fced2e6a642fa5..d4c6eafaf9efcd0f2a38d0358c4a7cd9bafec93c 100644 (file)
 #if defined(_MSC_VER) && !defined(_M_ARM) && !defined(_M_ARM64)
 #    include <intrin.h>
 #    define ANGLE_USE_SSE
-#elif defined(__GNUC__) && (defined(__x86_64__) || defined(__i386__))
+#elif defined(__GNUC__) && defined(__x86_64__)
 #    include <x86intrin.h>
 #    define ANGLE_USE_SSE
 #endif
index 9b2fecf9a0d367baf910bd241eca9e010f09a0a1..d66187a163ec4d2d487140122da0f2c3df131e85 100644 (file)
@@ -177,15 +177,6 @@ if (COMPILER_IS_GCC_OR_CLANG)
         WEBKIT_PREPEND_GLOBAL_COMPILER_FLAGS(-fmax-errors=20)
     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)