git.iko.soy/typeable/nixpkgs
on master help sign in
cc-wrapper: use -iframework instead of -F

This avoids dumping -Wall warnings when they appear in framework headers. As a result, we are closer to how regular headers are included (via -isystem). Also remove ccIncludeFlag lookup, this was unused & not very useful.

commitf496357585d6110d97cb55ad699a09ca003ed82b authorMatthew Bauer <mjbauer95@gmail.com> dateFri 28 Jun 2019, 16:25 (7 years ago) parenta338373
1 file changed+4−4
pkgs/build-support/cc-wrapper/setup-hook.sh+4−4
pkgs/build-support/cc-wrapper/setup-hook.sh+4−4
@@ -70,12 +70,12 @@ ccWrapper_addCVars () {
7070 local role_post role_pre
7171 getHostRoleEnvHook
7272
73− if [[ -d "$1/include" ]]; then
74− export NIX_${role_pre}CFLAGS_COMPILE+=" ${ccIncludeFlag:--isystem} $1/include"
73+ if [ -d "$1/include" ]; then
74+ export NIX_${role_pre}CFLAGS_COMPILE+=" -isystem $1/include"
7575 fi
7676
77− if [[ -d "$1/Library/Frameworks" ]]; then
78− export NIX_${role_pre}CFLAGS_COMPILE+=" -F$1/Library/Frameworks"
77+ if [ -d "$1/Library/Frameworks" ]; then
78+ export NIX_${role_pre}CFLAGS_COMPILE+=" -iframework $1/Library/Frameworks"
7979 fi
8080}
8181