haskell generic-builder: Limit usage of --extra-framework-dirs for compat

This commit is contained in:
John Ericson 2018-05-25 14:21:52 -04:00
parent ce0180dfd5
commit 2e70a75b12

View file

@ -212,6 +212,9 @@ let
if [ -d "$p/lib" ]; then
configureFlags+=" --extra-lib-dirs=$p/lib"
fi
''
# It is not clear why --extra-framework-dirs does work fine on Linux
+ optionalString (!buildPlatform.isDarwin || versionAtLeast nativeGhc.version "8.0") ''
if [[ -d "$p/Library/Frameworks" ]]; then
configureFlags+=" --extra-framework-dirs=$p/Library/Frameworks"
fi