0f1dea6916
Also adds a patch to add setup awareness for ppc(64(le)). This does not mean stack now provides prebuilt toolchains for the platforms, but at least it allows --system-ghc to work without --skip-ghc-check (when a matching local toolchain is available).
32 lines
1.4 KiB
Diff
32 lines
1.4 KiB
Diff
--- src/Stack/Setup.hs
|
|
+++ src/Stack/Setup.hs
|
|
@@ -95,6 +95,7 @@ import System.IO.Error (isPermissionError)
|
|
import System.FilePath (searchPathSeparator)
|
|
import qualified System.FilePath as FP
|
|
import System.Permissions (setFileExecutable)
|
|
+import System.Endian (getSystemEndianness, Endianness (..))
|
|
import Text.Printf (printf)
|
|
import System.Uname (getRelease)
|
|
import Data.List.Split (splitOn)
|
|
@@ -1264,6 +1265,11 @@ getOSKey platform =
|
|
Platform X86_64 Cabal.Windows -> return "windows64"
|
|
Platform Arm Cabal.Linux -> return "linux-armv7"
|
|
Platform AArch64 Cabal.Linux -> return "linux-aarch64"
|
|
+ Platform PPC Cabal.Linux -> return "linux-powerpc"
|
|
+ Platform PPC64 Cabal.Linux ->
|
|
+ case getSystemEndianness of
|
|
+ LittleEndian -> return "linux-powerpc64le"
|
|
+ BigEndian -> return "linux-powerpc64"
|
|
Platform arch os -> throwM $ UnsupportedSetupCombo os arch
|
|
|
|
downloadFromInfo
|
|
--- stack.cabal
|
|
+++ stack.cabal
|
|
@@ -235,6 +235,7 @@ library
|
|
conduit >=1.3.0.3,
|
|
conduit-extra >=1.3.0,
|
|
containers >=0.5.10.2,
|
|
+ cpu >=0.1.2,
|
|
cryptonite >=0.25,
|
|
cryptonite-conduit >=0.2.2,
|
|
deepseq >=1.4.3.0,
|