Skip to content

Commit

Permalink
Merge pull request #8243 from haskell/mergify/bp/3.8/pr-8232
Browse files Browse the repository at this point in the history
Apple Silicon Foreign Library Support (#8227) (backport #8232)
  • Loading branch information
Mikolaj authored Jun 22, 2022
2 parents 534a6c5 + 3bd101f commit 297098a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cabal/src/Distribution/Simple/Configure.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2065,12 +2065,12 @@ checkForeignLibSupported comp platform flib = go (compilerFlavor comp)
]

goGhcPlatform :: Platform -> Maybe String
goGhcPlatform (Platform X86_64 OSX ) = goGhcOsx (foreignLibType flib)
goGhcPlatform (Platform _ OSX ) = goGhcOsx (foreignLibType flib)
goGhcPlatform (Platform _ Linux ) = goGhcLinux (foreignLibType flib)
goGhcPlatform (Platform I386 Windows) = goGhcWindows (foreignLibType flib)
goGhcPlatform (Platform X86_64 Windows) = goGhcWindows (foreignLibType flib)
goGhcPlatform _ = unsupported [
"Building foreign libraries is currently only supported on OSX, "
"Building foreign libraries is currently only supported on Mac OS, "
, "Linux and Windows"
]

Expand Down
12 changes: 12 additions & 0 deletions changelog.d/issue-8227
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
synopsis: Enabled foreign library building on apple silicon
packages: Cabal
prs: #8232
issues: #8227 #7837
significance: significant

description: {

- Enabled foreign library building on apple silicon
- Updated error message for foreign library builds on unsupported platforms

}

0 comments on commit 297098a

Please sign in to comment.