From: Alberto Garcia Date: Thu, 14 Dec 2023 15:43:01 +0000 (+0100) Subject: Don't check for SSE2 support on i386 X-Git-Tag: archive/raspbian/2.48.1-2+rpi1~1^2^2^2^2^2^2^2^2^2^2^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=68498c7f0d8ce92aea42f16d89e100d589827ad7;p=wpewebkit.git Don't check for SSE2 support on i386 Bug-Debian: https://bugs.debian.org/930935 Forwarded: no =================================================================== Gbp-Pq: Name dont-detect-sse2.patch --- diff --git a/Source/ThirdParty/ANGLE/src/common/platform.h b/Source/ThirdParty/ANGLE/src/common/platform.h index edadfcde6..d4c6eafaf 100644 --- a/Source/ThirdParty/ANGLE/src/common/platform.h +++ b/Source/ThirdParty/ANGLE/src/common/platform.h @@ -112,7 +112,7 @@ #if defined(_MSC_VER) && !defined(_M_ARM) && !defined(_M_ARM64) # include # define ANGLE_USE_SSE -#elif defined(__GNUC__) && (defined(__x86_64__) || defined(__i386__)) +#elif defined(__GNUC__) && defined(__x86_64__) # include # define ANGLE_USE_SSE #endif diff --git a/Source/cmake/WebKitCompilerFlags.cmake b/Source/cmake/WebKitCompilerFlags.cmake index 9b2fecf9a..d66187a16 100644 --- a/Source/cmake/WebKitCompilerFlags.cmake +++ b/Source/cmake/WebKitCompilerFlags.cmake @@ -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)