!21 [sync] PR-18: add sw_64 support

From: @openeuler-sync-bot 
Reviewed-by: @weidongkl 
Signed-off-by: @weidongkl
This commit is contained in:
openeuler-ci-bot 2025-03-07 08:50:17 +00:00 committed by Gitee
commit deefc8f31b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 43 additions and 2 deletions

View File

@ -0,0 +1,37 @@
From 593752efbbb73ebe368ab2d16ec6f53695398bfb Mon Sep 17 00:00:00 2001
From: root <root@localhost.localdomain>
Date: Sun, 10 Nov 2024 13:43:25 +0800
Subject: [PATCH] add support sw_64
---
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 108adfc..38d33c1 100644
--- a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
+++ b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
@@ -156,6 +156,11 @@
#define WTF_CPU_ALPHA 1
#endif
+/* CPU(SW_64) - SW64 */
+#if defined(__sw_64__)
+#define WTF_CPU_SW_64 1
+#endif
+
/* CPU(IA64) - Itanium / IA-64 */
#if defined(__ia64__) || defined(__ia64) || defined(_M_IA64)
#define WTF_CPU_IA64 1
@@ -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)
+#if (CPU(X86_64) && !CPU(X32) && (OS(UNIX) || OS(WINDOWS) || OS(SOLARIS) || OS(HPUX))) || (CPU(IA64) && !CPU(IA64_32)) || CPU(ALPHA) || CPU(SW_64) || CPU(AIX64) || CPU(SPARC64) || CPU(MIPS64) || CPU(AARCH64) || CPU(RISCV64)
#define WTF_USE_JSVALUE64 1
#elif CPU(ARM) || CPU(PPC64) || CPU(RISCV32) || CPU(S390X)
#define WTF_USE_JSVALUE32 1
--
2.33.0

View File

@ -12,7 +12,7 @@
Name: qt5-%{qt_module}
Version: 5.15.10
Release: 1
Release: 2
Summary: QtScript component for qt5
License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0
Url: http://www.qt.io
@ -24,6 +24,7 @@ Source0: https://download.qt.io/official_releases/qt/%{majmin}/%{version}/
# add s390(x0 support to Platform.h (taken from webkit)
Patch100: qtscript-everywhere-src-5.12.1-s390.patch
Patch101: add-qtscript-support-sw_64.patch
BuildRequires: make
BuildRequires: gcc-c++
@ -65,7 +66,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
%build
%ifarch loongarch64
%ifarch loongarch64 sw_64
export CXXFLAGS="${CXXFLAGS} -fpermissive"
%endif
%qmake_qt5
@ -121,6 +122,9 @@ fi
%changelog
* Thu Mar 06 2025 mahailiang <mahailiang@uniontech.com> - 5.15.10-2
- add sw_64 support
* Mon Aug 21 2023 huayadong <huayadong@kylinos.cn> - 5.15.10-1
- update to version 5.15.10-1