Skip to content

Commit c327a48

Browse files
authored
Merge pull request #6259 from commercialhaskell/prefplat
Add AArch64 to Stack's preferred platforms
2 parents 63c3ad7 + 66468fb commit c327a48

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Behavior changes:
1515
* `stack hpc report`, `stack list`, `stack templates` and `stack uninstall`
1616
output their information to the standard output stream rather than to the
1717
standard error stream. Logging is still to the standard error stream.
18+
* `stack upgrade` no longer assumes that binary upgrade is not supported on a
19+
AArch64 machine architecture.
1820

1921
Other enhancements:
2022

src/Stack/Setup.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2797,11 +2797,14 @@ preferredPlatforms = do
27972797
I386 -> pure "i386"
27982798
X86_64 -> pure "x86_64"
27992799
Arm -> pure "arm"
2800+
AArch64 -> pure "aarch64"
28002801
_ -> prettyThrowM $ BinaryUpgradeOnArchUnsupported arch'
28012802
let hasgmp4 = False -- FIXME import relevant code from Stack.Setup?
28022803
-- checkLib $(mkRelFile "libgmp.so.3")
28032804
suffixes
2805+
-- 'gmp4' ceased to be relevant after Stack 1.9.3 (December 2018).
28042806
| hasgmp4 = ["-static", "-gmp4", ""]
2807+
-- 'static' will cease to be relevant after Stack 2.11.1 (May 2023).
28052808
| otherwise = ["-static", ""]
28062809
pure $ map (\suffix -> (isWindows, concat [os, "-", arch, suffix])) suffixes
28072810

0 commit comments

Comments
 (0)