summaryrefslogtreecommitdiff
path: root/nonprism/webkit2gtk/webkitgtk-2.36.3-no-sse2.arch32.patch
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2022-06-08 16:47:06 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2022-06-16 17:06:19 -0400
commit70a84204e3443c648cfa8dabab23663361c69469 (patch)
tree99d078fa5a12f77cde7bc2325dc60622a4de9201 /nonprism/webkit2gtk/webkitgtk-2.36.3-no-sse2.arch32.patch
parent83d702f01d555da5aaab07564753c9e8259bc109 (diff)
downloadabslibre-70a84204e3443c648cfa8dabab23663361c69469.tar.gz
abslibre-70a84204e3443c648cfa8dabab23663361c69469.tar.bz2
abslibre-70a84204e3443c648cfa8dabab23663361c69469.zip
[webkitgtk]: upgrade to v2.36.3
Diffstat (limited to 'nonprism/webkit2gtk/webkitgtk-2.36.3-no-sse2.arch32.patch')
-rw-r--r--nonprism/webkit2gtk/webkitgtk-2.36.3-no-sse2.arch32.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/nonprism/webkit2gtk/webkitgtk-2.36.3-no-sse2.arch32.patch b/nonprism/webkit2gtk/webkitgtk-2.36.3-no-sse2.arch32.patch
new file mode 100644
index 000000000..63a098a76
--- /dev/null
+++ b/nonprism/webkit2gtk/webkitgtk-2.36.3-no-sse2.arch32.patch
@@ -0,0 +1,50 @@
+diff -rauN webkitgtk-2.36.3/Source/cmake/WebKitCompilerFlags.cmake webkitgtk-2.36.3-no-sse2-patch/Source/cmake/WebKitCompilerFlags.cmake
+--- webkitgtk-2.36.3/Source/cmake/WebKitCompilerFlags.cmake 2022-06-02 08:44:07.302049344 +0200
++++ webkitgtk-2.36.3-no-sse2-patch/Source/cmake/WebKitCompilerFlags.cmake 2022-06-02 08:32:46.169362098 +0200
+@@ -163,13 +163,13 @@
+ 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 ()
++ 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.
+diff -rauN webkitgtk-2.36.3/Source/ThirdParty/ANGLE/src/common/platform.h webkitgtk-2.36.3-no-sse2-patch/Source/ThirdParty/ANGLE/src/common/platform.h
+--- webkitgtk-2.36.3/Source/ThirdParty/ANGLE/src/common/platform.h 2022-06-02 08:45:17.042348743 +0200
++++ webkitgtk-2.36.3-no-sse2-patch/Source/ThirdParty/ANGLE/src/common/platform.h 2022-06-02 08:32:46.189362180 +0200
+@@ -97,8 +97,8 @@
+ # include <intrin.h>
+ # define ANGLE_USE_SSE
+ #elif defined(__GNUC__) && (defined(__x86_64__) || defined(__i386__))
+-//# include <x86intrin.h>
+-//# define ANGLE_USE_SSE
++# include <x86intrin.h>
++# define ANGLE_USE_SSE
+ #endif
+
+ // Mips and arm devices need to include stddef for size_t.
+diff -rauN webkitgtk-2.36.3/Source/WTF/wtf/PlatformCPU.h webkitgtk-2.36.3-no-sse2-patch/Source/WTF/wtf/PlatformCPU.h
+--- webkitgtk-2.36.3/Source/WTF/wtf/PlatformCPU.h 2022-06-02 08:46:55.912771827 +0200
++++ webkitgtk-2.36.3-no-sse2-patch/Source/WTF/wtf/PlatformCPU.h 2022-06-02 08:32:45.789360661 +0200
+@@ -99,7 +99,7 @@
+ #define WTF_CPU_KNOWN 1
+
+ #if defined(__SSE2__) || (defined(_M_IX86_FP) && _M_IX86_FP >= 2)
+-/* #define WTF_CPU_X86_SSE2 1 */
++#define WTF_CPU_X86_SSE2 1
+ #endif
+
+ #endif