123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- 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
|