diff --git a/bytestring.cabal b/bytestring.cabal index 20cc13ea..c337c1ac 100644 --- a/bytestring.cabal +++ b/bytestring.cabal @@ -185,6 +185,13 @@ library if os(windows) && impl(ghc < 9.3) extra-libraries: gcc + if arch(aarch64) + -- The libffi in Apple's darwin toolchain doesn't + -- play nice with -Wundef. Recent GHCs work around this. + -- See also https://github.com/haskell/bytestring/issues/665 + -- and https://gitlab.haskell.org/ghc/ghc/-/issues/23568 + build-depends: base (>= 4.17.2 && < 4.18) || >= 4.18.1 + include-dirs: include install-includes: fpstring.h bytestring-cpp-macros.h