webkitgtk-2.36.3-no-sse2.arch32.patch 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. diff -rauN webkitgtk-2.36.3/Source/cmake/WebKitCompilerFlags.cmake webkitgtk-2.36.3-no-sse2-patch/Source/cmake/WebKitCompilerFlags.cmake
  2. --- webkitgtk-2.36.3/Source/cmake/WebKitCompilerFlags.cmake 2022-06-02 08:44:07.302049344 +0200
  3. +++ webkitgtk-2.36.3-no-sse2-patch/Source/cmake/WebKitCompilerFlags.cmake 2022-06-02 08:32:46.169362098 +0200
  4. @@ -163,13 +163,13 @@
  5. endif ()
  6. # Force SSE2 fp on x86 builds.
  7. -# if (WTF_CPU_X86 AND NOT CMAKE_CROSSCOMPILING)
  8. -# WEBKIT_PREPEND_GLOBAL_COMPILER_FLAGS(-msse2 -mfpmath=sse)
  9. -# include(DetectSSE2)
  10. -# if (NOT SSE2_SUPPORT_FOUND)
  11. -# message(FATAL_ERROR "SSE2 support is required to compile WebKit")
  12. -# endif ()
  13. -# endif ()
  14. + if (WTF_CPU_X86 AND NOT CMAKE_CROSSCOMPILING)
  15. + WEBKIT_PREPEND_GLOBAL_COMPILER_FLAGS(-msse2 -mfpmath=sse)
  16. + include(DetectSSE2)
  17. + if (NOT SSE2_SUPPORT_FOUND)
  18. + message(FATAL_ERROR "SSE2 support is required to compile WebKit")
  19. + endif ()
  20. + endif ()
  21. # Makes builds faster. The GCC manual warns about the possibility that the assembler being
  22. # used may not support input from a pipe, but in practice the toolchains we support all do.
  23. 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
  24. --- webkitgtk-2.36.3/Source/ThirdParty/ANGLE/src/common/platform.h 2022-06-02 08:45:17.042348743 +0200
  25. +++ webkitgtk-2.36.3-no-sse2-patch/Source/ThirdParty/ANGLE/src/common/platform.h 2022-06-02 08:32:46.189362180 +0200
  26. @@ -97,8 +97,8 @@
  27. # include <intrin.h>
  28. # define ANGLE_USE_SSE
  29. #elif defined(__GNUC__) && (defined(__x86_64__) || defined(__i386__))
  30. -//# include <x86intrin.h>
  31. -//# define ANGLE_USE_SSE
  32. +# include <x86intrin.h>
  33. +# define ANGLE_USE_SSE
  34. #endif
  35. // Mips and arm devices need to include stddef for size_t.
  36. diff -rauN webkitgtk-2.36.3/Source/WTF/wtf/PlatformCPU.h webkitgtk-2.36.3-no-sse2-patch/Source/WTF/wtf/PlatformCPU.h
  37. --- webkitgtk-2.36.3/Source/WTF/wtf/PlatformCPU.h 2022-06-02 08:46:55.912771827 +0200
  38. +++ webkitgtk-2.36.3-no-sse2-patch/Source/WTF/wtf/PlatformCPU.h 2022-06-02 08:32:45.789360661 +0200
  39. @@ -99,7 +99,7 @@
  40. #define WTF_CPU_KNOWN 1
  41. #if defined(__SSE2__) || (defined(_M_IX86_FP) && _M_IX86_FP >= 2)
  42. -/* #define WTF_CPU_X86_SSE2 1 */
  43. +#define WTF_CPU_X86_SSE2 1
  44. #endif
  45. #endif