1 From: Alberto Garcia <berto@igalia.com>
2 Description: Use WTF_CPU_UNKNOWN when building for X32
3 WebKitGTK doesn't build on X32 even with the JIT disabled.
4 Treating the CPU as unknown is perhaps a bit severe, but it allows us
5 to get the build done until someone steps up to maintain this
8 Index: webkitgtk/Source/WTF/wtf/Platform.h
9 ===================================================================
10 --- webkitgtk-2.30.5/Source/WTF/wtf/PlatformCPU.h.orig 2020-08-12 11:17:54.000000000 +0200
11 +++ webkitgtk-2.30.5/Source/WTF/wtf/PlatformCPU.h 2021-03-13 19:14:43.872248582 +0100
15 /* CPU(X86_64) - AMD64 / Intel64 / x86_64 64-bit */
16 -#if defined(__x86_64__) \
18 +#if ( defined(__x86_64__) \
19 + || defined(_M_X64) ) && !defined(__ILP32__)
20 #define WTF_CPU_X86_64 1
21 #define WTF_CPU_X86_SSE2 1
22 #define WTF_CPU_KNOWN 1
23 --- webkitgtk-2.32.0/Source/cmake/WebKitCommon.cmake.orig 2021-02-26 10:57:17.000000000 +0100
24 +++ webkitgtk-2.32.0/Source/cmake/WebKitCommon.cmake 2021-03-28 07:30:53.574578782 +0200
25 @@ -90,6 +90,8 @@ if (NOT HAS_RUN_WEBKIT_COMMON)
27 elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "^mips")
29 + elseif (CMAKE_CXX_COMPILER_ABI STREQUAL "ELF X32")
30 + set(WTF_CPU_UNKNOWN 1)
31 elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "(x64|x86_64|amd64)")
32 # FORCE_32BIT is set in the build script when --32-bit is passed
33 # on a Linux/intel 64bit host. This allows us to produce 32bit