!21 [sync] PR-18: add sw_64 support
From: @openeuler-sync-bot Reviewed-by: @weidongkl Signed-off-by: @weidongkl
This commit is contained in:
commit
deefc8f31b
37
add-qtscript-support-sw_64.patch
Normal file
37
add-qtscript-support-sw_64.patch
Normal 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
|
||||||
|
|
||||||
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
Name: qt5-%{qt_module}
|
Name: qt5-%{qt_module}
|
||||||
Version: 5.15.10
|
Version: 5.15.10
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: QtScript component for qt5
|
Summary: QtScript component for qt5
|
||||||
License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||||
Url: http://www.qt.io
|
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)
|
# add s390(x0 support to Platform.h (taken from webkit)
|
||||||
Patch100: qtscript-everywhere-src-5.12.1-s390.patch
|
Patch100: qtscript-everywhere-src-5.12.1-s390.patch
|
||||||
|
Patch101: add-qtscript-support-sw_64.patch
|
||||||
|
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
@ -65,7 +66,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%ifarch loongarch64
|
%ifarch loongarch64 sw_64
|
||||||
export CXXFLAGS="${CXXFLAGS} -fpermissive"
|
export CXXFLAGS="${CXXFLAGS} -fpermissive"
|
||||||
%endif
|
%endif
|
||||||
%qmake_qt5
|
%qmake_qt5
|
||||||
@ -121,6 +122,9 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Aug 21 2023 huayadong <huayadong@kylinos.cn> - 5.15.10-1
|
||||||
- update to version 5.15.10-1
|
- update to version 5.15.10-1
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user