git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #63904 from matthewbauer/iframeworkdir

cc-wrapper: use -iframework instead of -F

commit6c4ed49ed83007ddc8edc4563bb2a792c9395a6d authorJohn Ericson <John.Ericson@Obsidian.Systems> dateWed 3 Jul 2019, 17:11 (7 years ago) parent10f3980f496357
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