]> git.pld-linux.org Git - packages/wpe-webkit.git/blob - wpe-webkit-x32.patch
- updated to 2.44.1
[packages/wpe-webkit.git] / wpe-webkit-x32.patch
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
6  properly.
7 Forwarded: no
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
12 @@ -105,8 +105,8 @@
13  #endif
14  
15  /* CPU(X86_64) - AMD64 / Intel64 / x86_64 64-bit */
16 -#if   defined(__x86_64__) \
17 -    || defined(_M_X64)
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)
26          set(WTF_CPU_MIPS64 1)
27      elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "^mips")
28          set(WTF_CPU_MIPS 1)
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
This page took 0.096068 seconds and 4 git commands to generate.