14 Star 0 Fork 5

ocs-upgrade/qt5-qtscript

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
add-loongarch-support.patch 1.38 KB
一键复制 编辑 原始数据 按行查看 历史
zhailiangliang 提交于 2024-06-04 09:12 . add longarch64 support
diff -pNur qtscript-everywhere-src-5.15.11/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h qtscript-everywhere-src-5.15.11_1/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
--- qtscript-everywhere-src-5.15.11/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h 2022-06-15 17:21:05.000000000 +0000
+++ qtscript-everywhere-src-5.15.11_1/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h 2024-06-04 09:23:59.188158418 +0000
@@ -397,6 +397,11 @@
#endif
#endif /* __mips__ */
+/* CPU(LOONGARCH64) */
+#if defined(__loongarch64__) || defined(__loongarch64)
+#define WTF_CPU_LOONGARCH64 1
+#endif
+
/* CPU(RISCV64) - RISC-V 64-bit */
#if defined(__riscv) && __riscv_xlen == 64
#define WTF_CPU_RISCV64 1
@@ -958,7 +963,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)
+#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(LOONGARCH64) || CPU(AARCH64) || CPU(RISCV64)
#define WTF_USE_JSVALUE64 1
#elif CPU(ARM) || CPU(PPC64) || CPU(RISCV32)
#define WTF_USE_JSVALUE32 1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ocs-upgrade/qt5-qtscript.git
[email protected]:ocs-upgrade/qt5-qtscript.git
ocs-upgrade
qt5-qtscript
qt5-qtscript
master

搜索帮助