Add a patch to support loongarch64
This commit is contained in:
parent
7835d7ac02
commit
e8231be713
|
@ -1,3 +1,9 @@
|
|||
qtscript-opensource-src (5.15.10+dfsg-2ok1.3) nile; urgency=medium
|
||||
|
||||
* Add a patch to support loongarch64 (closes: #1064339, thanks Ding Song).
|
||||
|
||||
-- liwenjun <liwenjun@kylinos.cn> Mon, 29 Jul 2024 15:16:43 +0800
|
||||
|
||||
qtscript-opensource-src (5.15.10+dfsg-2ok1.2) nile; urgency=medium
|
||||
|
||||
* add patches.
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
From: Rewnosor <liwenjun@kylinos.cn>
|
||||
Date: Mon, 29 Jul 2024 15:18:39 +0800
|
||||
Subject: Add a patch to support loongarch64
|
||||
|
||||
---
|
||||
src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h | 7 ++++++-
|
||||
1 file changed, 6 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
|
||||
index 4bf2a5d..6c04d32 100644
|
||||
--- a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
|
||||
+++ b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
|
||||
@@ -387,6 +387,11 @@
|
||||
|
||||
#endif /* ARM */
|
||||
|
||||
+/* CPU(LOONGARCH64) - LOONGARCH64 */
|
||||
+#if defined(__loongarch64)
|
||||
+#define WTF_CPU_LOONGARCH64 1
|
||||
+#endif
|
||||
+
|
||||
#if (defined(mips) || defined(__mips__) || defined(MIPS) || defined(_MIPS_))
|
||||
#define WTF_CPU_MIPS 1
|
||||
#include <sgidefs.h>
|
||||
@@ -970,7 +975,7 @@
|
||||
#endif
|
||||
|
||||
#if !defined(WTF_USE_JSVALUE64) && !defined(WTF_USE_JSVALUE32) && !defined(WTF_USE_JSVALUE32_64)
|
||||
-#if (CPU(X86_64) && !CPU(X32) && (OS(UNIX) || OS(WINDOWS) || OS(SOLARIS) || OS(HPUX))) || (CPU(IA64) && !CPU(IA64_32)) || CPU(ALPHA) || CPU(AIX64) || CPU(SPARC64) || CPU(MIPS64) || CPU(AARCH64) || CPU(RISCV64) || CPU(S390X)
|
||||
+#if (CPU(X86_64) && !CPU(X32) && (OS(UNIX) || OS(WINDOWS) || OS(SOLARIS) || OS(HPUX))) || (CPU(IA64) && !CPU(IA64_32)) || CPU(ALPHA) || CPU(AIX64) || CPU(SPARC64) || CPU(MIPS64) || CPU(AARCH64) || CPU(RISCV64) || CPU(S390X) || CPU(LOONGARCH64)
|
||||
#define WTF_USE_JSVALUE64 1
|
||||
#elif CPU(ARM) || CPU(PPC64) || CPU(RISCV32)
|
||||
#define WTF_USE_JSVALUE32 1
|
|
@ -4,3 +4,4 @@ s390x_jscore.diff
|
|||
hppa_stackbase.diff
|
||||
0005-init-5.15.10.patch
|
||||
0006-add-patches.patch
|
||||
0007-Add-a-patch-to-support-loongarch64.patch
|
||||
|
|
Loading…
Reference in New Issue