patch stack setup for ppc64le and s390 (backport)

To avoid:
I don't know how to install GHC for (Linux,PPC64), please install manually
This commit is contained in:
Jens Petersen 2024-07-08 22:02:21 +08:00
commit 416302fefa
2 changed files with 18 additions and 2 deletions

View file

@ -0,0 +1,11 @@
--- stack-2.7.5/src/Stack/Setup.hs~ 2024-07-08 21:24:36.825860660 +0800
+++ stack-2.7.5/src/Stack/Setup.hs 2024-07-08 21:26:16.500759387 +0800
@@ -1261,6 +1261,8 @@
Platform Sparc Cabal.Linux -> return "linux-sparc"
Platform AArch64 Cabal.OSX -> return "macosx-aarch64"
Platform AArch64 Cabal.FreeBSD -> return "freebsd-aarch64"
+ Platform PPC64 Cabal.Linux -> pure "linux-ppc64"
+ Platform S390 Cabal.Linux -> pure "linux-s390"
Platform arch os -> throwM $ UnsupportedSetupCombo os arch
downloadOrUseLocal