Skip to content

Commit

Permalink
Add a constraint reflecting #665 to the package description (#698)
Browse files Browse the repository at this point in the history
Some combinations of Apple toolchains and GHC versions will
provide headers that anger -Werror=undef.  See discussion
at that #665.
  • Loading branch information
clyring authored Oct 22, 2024
1 parent 2ad59ee commit c32b769
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bytestring.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c32b769

Please sign in to comment.