qtwebkit: Fix build on mips/clang

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2021-10-26 11:03:25 -07:00
committed by Martin Jansa
parent 6e808aeece
commit 287f7d1efe
2 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
fix build on mips
Fixes
Source/WTF/wtf/Atomics.cpp:63:9: error: definition of builtin function '__sync_add_and_fetch_8'
int64_t __sync_add_and_fetch_8(int64_t volatile* addend, int64_t value)
Source/WTF/wtf/Atomics.cpp:68:9: error: definition of builtin function '__sync_sub_and_fetch_8'
int64_t __sync_sub_and_fetch_8(int64_t volatile* addend, int64_t value)
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
--- a/Source/WTF/wtf/Platform.h
+++ b/Source/WTF/wtf/Platform.h
@@ -88,6 +88,7 @@
#else
#define WTF_CPU_MIPS 1
#define WTF_MIPS_ARCH __mips
+#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 1
#endif
#if defined(__MIPSEB__)
#define WTF_CPU_BIG_ENDIAN 1

View File

@@ -23,6 +23,7 @@ SRC_URI += "\
file://0007-Fix-compilation-with-Python-3.9-avoid-passing-encodi.patch \
file://0008-Fix-build-with-icu-68.patch \
file://0009-Riscv-Add-support-for-riscv.patch \
file://mips-atomic.patch \
"
SRC_URI:append:riscv32 = " file://0010-webdriver-libatomic.patch "