diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-07-23 11:47:46 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-07-23 11:47:46 +0200 |
commit | bf0d518c6733873a67989c4781d56f8b0fccbc46 (patch) | |
tree | dfd006b33d548d0356707f19879cecc41da0f6a4 /pkgs/stdenv/nix/default.nix | |
parent | eb6c0826c539ba20db94b1f088323729c42be6c1 (diff) | |
download | nixlib-bf0d518c6733873a67989c4781d56f8b0fccbc46.tar nixlib-bf0d518c6733873a67989c4781d56f8b0fccbc46.tar.gz nixlib-bf0d518c6733873a67989c4781d56f8b0fccbc46.tar.bz2 nixlib-bf0d518c6733873a67989c4781d56f8b0fccbc46.tar.lz nixlib-bf0d518c6733873a67989c4781d56f8b0fccbc46.tar.xz nixlib-bf0d518c6733873a67989c4781d56f8b0fccbc46.tar.zst nixlib-bf0d518c6733873a67989c4781d56f8b0fccbc46.zip |
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.
Diffstat (limited to 'pkgs/stdenv/nix/default.nix')
-rw-r--r-- | pkgs/stdenv/nix/default.nix | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/stdenv/nix/default.nix b/pkgs/stdenv/nix/default.nix index cb4c0fd0a61b..b540456afa4a 100644 --- a/pkgs/stdenv/nix/default.nix +++ b/pkgs/stdenv/nix/default.nix @@ -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 ""); |