From: Alberto Garcia Date: Thu, 17 Oct 2024 14:52:26 +0000 (+0200) Subject: Don't check for SSE2 support on i386 X-Git-Tag: archive/raspbian/2.46.5-1+rpi1^2^2^2^2^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3c0d1640b2f6a17f7475d73d4380058d1afa8a89;p=webkit2gtk.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/mathutil.h b/Source/ThirdParty/ANGLE/src/common/mathutil.h index 4163e35d23..99107dffe1 100644 --- a/Source/ThirdParty/ANGLE/src/common/mathutil.h +++ b/Source/ThirdParty/ANGLE/src/common/mathutil.h @@ -550,7 +550,7 @@ inline R roundToNearest(T input) { static_assert(std::is_floating_point::value); static_assert(std::numeric_limits::is_integer); -#if defined(__aarch64__) || defined(_M_ARM64) +#if defined(__aarch64__) || defined(_M_ARM64) || defined(__i386__) // On armv8, this expression is compiled to a dedicated round-to-nearest instruction return static_cast(std::round(input)); #else diff --git a/Source/cmake/WebKitCompilerFlags.cmake b/Source/cmake/WebKitCompilerFlags.cmake index 0cf5c5d333..9747cecda7 100644 --- a/Source/cmake/WebKitCompilerFlags.cmake +++ b/Source/cmake/WebKitCompilerFlags.cmake @@ -219,15 +219,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)