Skip to content

Commit 8b0534f

Browse files
bertoggOriginCode
authored andcommitted
Description: Use WTF_CPU_UNKNOWN when building for riscv64
WebKitGTK doesn't build on riscv64 even with the JIT disabled. Treating the CPU as unknown is perhaps a bit severe, but it allows us to get the build done until someone steps up to maintain this properly. Bug: https://bugs.webkit.org/show_bug.cgi?id=271371
1 parent 5dc0b0f commit 8b0534f

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

Source/WTF/wtf/PlatformCPU.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -285,14 +285,6 @@
285285

286286
#endif /* ARM */
287287

288-
/* CPU(RISCV64) - RISC-V 64-bit */
289-
#if defined(__riscv) \
290-
&& defined(__riscv_xlen) \
291-
&& (__riscv_xlen == 64)
292-
#define WTF_CPU_RISCV64 1
293-
#define WTF_CPU_KNOWN 1
294-
#endif
295-
296288
#if !CPU(KNOWN)
297289
#define WTF_CPU_UNKNOWN 1
298290
#endif

Source/cmake/WebKitCommon.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@ if (NOT HAS_RUN_WEBKIT_COMMON)
125125
set(WTF_CPU_PPC64 1)
126126
elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64le")
127127
set(WTF_CPU_PPC64LE 1)
128-
elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "^riscv64")
129-
set(WTF_CPU_RISCV64 1)
130128
elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "^loongarch64")
131129
set(WTF_CPU_LOONGARCH64 1)
132130
else ()

0 commit comments

Comments
 (0)