We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ed8056 commit 0bea4a1Copy full SHA for 0bea4a1
1 file changed
pkgs/build-support/cc-wrapper/setup-hook.sh
@@ -69,10 +69,12 @@ ccWrapper_addCVars () {
69
getHostRoleEnvHook
70
71
if [ -d "$1/include" ]; then
72
+ (! echo "$NIX_CFLAGS_COMPILE" | grep -q -F "$1/include") &&
73
export NIX_CFLAGS_COMPILE${role_post}+=" -isystem $1/include"
74
fi
75
76
if [ -d "$1/Library/Frameworks" ]; then
77
+ (! echo "$NIX_CFLAGS_COMPILE" | grep -q -F "$1/Library/Frameworks") &&
78
export NIX_CFLAGS_COMPILE${role_post}+=" -iframework $1/Library/Frameworks"
79
80
}
0 commit comments