aboutsummaryrefslogtreecommitdiffstats
path: root/community/qt5-qtscript/qtscript-s390x.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-01-02 10:30:16 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-01-02 10:31:17 +0000
commit7c012b5e743924cd95f6d403e028359805133f02 (patch)
tree0b01831b9162ba986d42d633d7e986267684d3f9 /community/qt5-qtscript/qtscript-s390x.patch
parent7c6239b112238719c308c1640f9cf50fcf44a148 (diff)
downloadaports-7c012b5e743924cd95f6d403e028359805133f02.tar.bz2
aports-7c012b5e743924cd95f6d403e028359805133f02.tar.xz
community/qt5-qtscript: fix build on s390x
Diffstat (limited to 'community/qt5-qtscript/qtscript-s390x.patch')
-rw-r--r--community/qt5-qtscript/qtscript-s390x.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/community/qt5-qtscript/qtscript-s390x.patch b/community/qt5-qtscript/qtscript-s390x.patch
new file mode 100644
index 0000000000..9c81f76449
--- /dev/null
+++ b/community/qt5-qtscript/qtscript-s390x.patch
@@ -0,0 +1,32 @@
+diff --git a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
+index 96942c7..61b64a2 100644
+--- a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
++++ b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
+@@ -226,6 +226,18 @@
+ #define WTF_CPU_SPARC 1
+ #endif
+
++/* CPU(S390X) - S390 64-bit */
++#if defined(__s390x__)
++#define WTF_CPU_S390X 1
++#define WTF_CPU_BIG_ENDIAN 1
++#endif
++
++/* CPU(S390) - S390 32-bit */
++#if defined(__s390__) && !defined(__s390x__)
++#define WTF_CPU_S390 1
++#define WTF_CPU_BIG_ENDIAN 1
++#endif
++
+ /* CPU(X86) - i386 / x86 32-bit */
+ #if defined(__i386__) \
+ || defined(i386) \
+@@ -960,7 +972,7 @@
+ #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)
+ #define WTF_USE_JSVALUE64 1
+-#elif CPU(ARM) || CPU(PPC64) || CPU(RISCV32)
++#elif CPU(ARM) || CPU(PPC64) || CPU(RISCV32) || CPU(S390X)
+ #define WTF_USE_JSVALUE32 1
+ #elif OS(WINDOWS) && COMPILER(MINGW)
+ /* Using JSVALUE32_64 causes padding/alignement issues for JITStubArg