forked from mirrors/nixpkgs
stdenv-darwin: Shut up some warnings from SDK headers
The Carbon headers spew out zillions of multichar / deprecations warnings, which isn't very helpful. So turn them off.
This commit is contained in:
parent
eb6c0826c5
commit
bf0d518c67
|
@ -15,9 +15,8 @@ import ../generic rec {
|
|||
stripAllFlags=" " # the Darwin "strip" command doesn't know "-s"
|
||||
xargsFlags=" "
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.6
|
||||
export NIX_CFLAGS_COMPILE+=" --sysroot=/var/empty"
|
||||
xcodePath=$(/usr/bin/xcrun --show-sdk-path 2> /dev/null || true)
|
||||
export NIX_CFLAGS_COMPILE+=" -idirafter $xcodePath/usr/include -F$xcodePath/System/Library/Frameworks"
|
||||
export NIX_CFLAGS_COMPILE+=" --sysroot=/var/empty -idirafter $xcodePath/usr/include -F$xcodePath/System/Library/Frameworks -Wno-multichar -Wno-deprecated-declarations"
|
||||
export NIX_LDFLAGS_AFTER+=" -L$xcodePath/usr/lib"
|
||||
'' else "");
|
||||
|
||||
|
|
Loading…
Reference in a new issue