rk3568_ubuntu_r60_v1.3.2/yocto/meta-qt5/recipes-qt/qt5/qtwebkit/mips-atomic.patch

22 lines
685 B
Diff
Raw Normal View History

2023-11-03 14:12:44 +08:00
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