libwebkit2gtk41: re-add patch to not require SSE2 on x86

This commit is contained in:
oreo639 2025-02-15 19:09:54 -08:00
parent 8d8bbd1267
commit 4b9ff244d8

View File

@ -0,0 +1,29 @@
--- a/Source/cmake/WebKitCompilerFlags.cmake
+++ b/Source/cmake/WebKitCompilerFlags.cmake
@@ -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)
--- a/Source/ThirdParty/ANGLE/src/image_util/loadimage.cpp
+++ b/Source/ThirdParty/ANGLE/src/image_util/loadimage.cpp
@@ -16,7 +16,7 @@
# if defined(_MSC_VER)
# include <intrin.h>
# define ANGLE_LOADIMAGE_USE_SSE
-# elif defined(__GNUC__) && (defined(__x86_64__) || defined(__i386__))
+# elif defined(__GNUC__) && defined(__x86_64__)
# include <x86intrin.h>
# if __SSE__
# define ANGLE_LOADIMAGE_USE_SSE