summaryrefslogtreecommitdiff
path: root/extra/webkit2gtk/webkitgtk-2.24.1-no-sse2.patch
blob: 9fdac3cc7877e3564560385ae98aeaf809e70880 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
diff -rauN webkitgtk-2.24.1/CMakeLists.txt webkitgtk-2.24.1-no-sse2-patch/CMakeLists.txt
--- webkitgtk-2.24.1/CMakeLists.txt	2019-04-08 12:45:38.000000000 +0200
+++ webkitgtk-2.24.1-no-sse2-patch/CMakeLists.txt	2019-05-19 12:33:45.378203751 +0200
@@ -109,12 +109,12 @@
 #---------------------------
 # Make sure SSE2 is present.
 #---------------------------
-if (WTF_CPU_X86)
-    include(FindSSE2)
-    if (NOT SSE2_SUPPORT_FOUND)
-        message(FATAL_ERROR "SSE2 support is required to compile WebKit")
-    endif ()
-endif ()
+#if (WTF_CPU_X86)
+#    include(FindSSE2)
+#    if (NOT SSE2_SUPPORT_FOUND)
+#        message(FATAL_ERROR "SSE2 support is required to compile WebKit")
+#    endif ()
+#endif ()
 
 # -----------------------------------------------------------------------------
 # Determine the operating system
diff -rauN webkitgtk-2.24.1/Source/WebCore/platform/audio/VectorMath.cpp webkitgtk-2.24.1-no-sse2-patch/Source/WebCore/platform/audio/VectorMath.cpp
--- webkitgtk-2.24.1/Source/WebCore/platform/audio/VectorMath.cpp	2019-02-12 12:21:18.000000000 +0100
+++ webkitgtk-2.24.1-no-sse2-patch/Source/WebCore/platform/audio/VectorMath.cpp	2019-05-17 14:43:51.042171245 +0200
@@ -33,6 +33,7 @@
 #endif
 
 #if CPU(X86_SSE2)
+#define No SSE2
 #include <emmintrin.h>
 #endif
 
diff -rauN webkitgtk-2.24.1/Source/WTF/wtf/Platform.h webkitgtk-2.24.1-no-sse2-patch/Source/WTF/wtf/Platform.h
--- webkitgtk-2.24.1/Source/WTF/wtf/Platform.h	2019-03-05 16:32:47.000000000 +0100
+++ webkitgtk-2.24.1-no-sse2-patch/Source/WTF/wtf/Platform.h	2019-05-17 14:17:45.508210181 +0200
@@ -124,6 +124,7 @@
 #define WTF_CPU_KNOWN 1
 
 #if defined(__SSE2__) || (defined(_M_IX86_FP) && _M_IX86_FP >= 2)
+#error No SSE2
 #define WTF_CPU_X86_SSE2 1
 #endif