Skip to content

Commit a2b6d05

Browse files
clyringBodigrim
authored andcommitted
Add a constraint reflecting #665 to the package description (#698)
Some combinations of Apple toolchains and GHC versions will provide headers that anger -Werror=undef. See discussion at that #665.
1 parent 5afd095 commit a2b6d05

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bytestring.cabal

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,13 @@ library
185185
if os(windows) && impl(ghc < 9.3)
186186
extra-libraries: gcc
187187

188+
if arch(aarch64)
189+
-- The libffi in Apple's darwin toolchain doesn't
190+
-- play nice with -Wundef. Recent GHCs work around this.
191+
-- See also https://github.com/haskell/bytestring/issues/665
192+
-- and https://gitlab.haskell.org/ghc/ghc/-/issues/23568
193+
build-depends: base (>= 4.17.2 && < 4.18) || >= 4.18.1
194+
188195
include-dirs: include
189196
install-includes: fpstring.h
190197
bytestring-cpp-macros.h

0 commit comments

Comments
 (0)