diff --git a/Cabal/src/Distribution/Simple/Configure.hs b/Cabal/src/Distribution/Simple/Configure.hs index 1ae686b2ecbb226b8774ec2de31e5e3c67bbc4ac..4d40d30bffb3dbfb87d6041da1212bca169d2d0a 100644 --- a/Cabal/src/Distribution/Simple/Configure.hs +++ b/Cabal/src/Distribution/Simple/Configure.hs @@ -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" ] diff --git a/changelog.d/issue-8227 b/changelog.d/issue-8227 new file mode 100644 index 0000000000000000000000000000000000000000..1a43d89813aef30ab27b10e792e23fc7dfe47db7 --- /dev/null +++ b/changelog.d/issue-8227 @@ -0,0 +1,11 @@ +synopsis: Enabled foreign library building on apple silicon +packages: cabal-install +issues: #8227, #7837 +significance: significant + +description: { + +- Enabled foreign library building on apple silicon +- Updated error message for foreign library builds on unsupported platforms + +}