Skip to content

Commit 138cf07

Browse files
authored
Merge pull request #8065 from stefan-sf-ibm/add-arch-s390x
Add support for the 64-bit S390X architecture
2 parents 179375f + 1b7faea commit 138cf07

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

Cabal-syntax/src/Distribution/System.hs

+4-4
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ buildOS = classifyOS Permissive System.Info.os
151151
-- ------------------------------------------------------------
152152

153153
-- | These are the known Arches: I386, X86_64, PPC, PPC64, Sparc,
154-
-- Arm, AArch64, Mips, SH, IA64, S39, Alpha, Hppa, Rs6000, M68k,
155-
-- Vax, and JavaScript.
154+
-- Arm, AArch64, Mips, SH, IA64, S390, S390X, Alpha, Hppa, Rs6000,
155+
-- M68k, Vax, and JavaScript.
156156
--
157157
-- The following aliases can also be used:
158158
-- * PPC alias: powerpc
@@ -164,7 +164,7 @@ buildOS = classifyOS Permissive System.Info.os
164164
--
165165
data Arch = I386 | X86_64 | PPC | PPC64 | Sparc
166166
| Arm | AArch64 | Mips | SH
167-
| IA64 | S390
167+
| IA64 | S390 | S390X
168168
| Alpha | Hppa | Rs6000
169169
| M68k | Vax
170170
| JavaScript
@@ -178,7 +178,7 @@ instance NFData Arch where rnf = genericRnf
178178
knownArches :: [Arch]
179179
knownArches = [I386, X86_64, PPC, PPC64, Sparc
180180
,Arm, AArch64, Mips, SH
181-
,IA64, S390
181+
,IA64, S390, S390X
182182
,Alpha, Hppa, Rs6000
183183
,M68k, Vax
184184
,JavaScript]

Cabal-tests/tests/UnitTests/Distribution/Utils/Structured.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ tests = testGroup "Distribution.Utils.Structured"
2727
-- The difference is in encoding of newtypes
2828
#if MIN_VERSION_base(4,7,0)
2929
, testCase "GenericPackageDescription" $
30-
md5Check (Proxy :: Proxy GenericPackageDescription) 0xafbf1cfb39ece402a2008d07f5e5ffd8
30+
md5Check (Proxy :: Proxy GenericPackageDescription) 0x3713da01e295903b046123a7cba0fb14
3131
, testCase "LocalBuildInfo" $
32-
md5Check (Proxy :: Proxy LocalBuildInfo) 0xd8b4c7f04e75345f0303fe2c3093bc29
32+
md5Check (Proxy :: Proxy LocalBuildInfo) 0xd4d0449f6db57c79b68b6e412b5f4f55
3333
#endif
3434
]
3535

Cabal/src/Distribution/Simple/PreProcess.hs

+1
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,7 @@ platformDefines lbi =
722722
SH -> []
723723
IA64 -> ["ia64"]
724724
S390 -> ["s390"]
725+
S390X -> ["s390x"]
725726
Alpha -> ["alpha"]
726727
Hppa -> ["hppa"]
727728
Rs6000 -> ["rs6000"]

changelog.d/pr-8065

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
synopsis: Add support for the 64-bit S390X architecture
2+
prs: #8065
3+
packages: Cabal, Cabal-syntax

0 commit comments

Comments
 (0)