Skip to content

Commit

Permalink
Add AArch64 to Stack's preferred platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
mpilgrem committed Sep 28, 2023
1 parent 63c3ad7 commit 66468fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Behavior changes:
* `stack hpc report`, `stack list`, `stack templates` and `stack uninstall`
output their information to the standard output stream rather than to the
standard error stream. Logging is still to the standard error stream.
* `stack upgrade` no longer assumes that binary upgrade is not supported on a
AArch64 machine architecture.

Other enhancements:

Expand Down
3 changes: 3 additions & 0 deletions src/Stack/Setup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2797,11 +2797,14 @@ preferredPlatforms = do
I386 -> pure "i386"
X86_64 -> pure "x86_64"
Arm -> pure "arm"
AArch64 -> pure "aarch64"
_ -> prettyThrowM $ BinaryUpgradeOnArchUnsupported arch'
let hasgmp4 = False -- FIXME import relevant code from Stack.Setup?
-- checkLib $(mkRelFile "libgmp.so.3")
suffixes
-- 'gmp4' ceased to be relevant after Stack 1.9.3 (December 2018).
| hasgmp4 = ["-static", "-gmp4", ""]
-- 'static' will cease to be relevant after Stack 2.11.1 (May 2023).
| otherwise = ["-static", ""]
pure $ map (\suffix -> (isWindows, concat [os, "-", arch, suffix])) suffixes

Expand Down

0 comments on commit 66468fb

Please sign in to comment.