haskellPackages: restrict darwin int ptr workaround to affected GHCs
A fix was merged for GHC >= 9.10 which has been backported to GHC 9.8.2 and 9.6.5. -a5a7a0cead-92239edecc
This commit is contained in:
@@ -549,8 +549,10 @@ let
|
||||
}
|
||||
// env
|
||||
# Implicit pointer to integer conversions are errors by default since clang 15.
|
||||
# Works around https://gitlab.haskell.org/ghc/ghc/-/issues/23456.
|
||||
// optionalAttrs (stdenv.hasCC && stdenv.cc.isClang) {
|
||||
# Works around https://gitlab.haskell.org/ghc/ghc/-/issues/23456. krank:ignore-line
|
||||
# A fix was included in GHC 9.10.* and backported to 9.6.5 and 9.8.2 (but we no longer
|
||||
# ship 9.8.1).
|
||||
// optionalAttrs (lib.versionOlder ghc.version "9.6.5" && stdenv.hasCC && stdenv.cc.isClang) {
|
||||
NIX_CFLAGS_COMPILE =
|
||||
"-Wno-error=int-conversion"
|
||||
+ lib.optionalString (env ? NIX_CFLAGS_COMPILE) (" " + env.NIX_CFLAGS_COMPILE);
|
||||
|
||||
Reference in New Issue
Block a user