forked from mirrors/nixpkgs
Merge pull request #63904 from matthewbauer/iframeworkdir
cc-wrapper: use -iframework instead of -F
This commit is contained in:
commit
6c4ed49ed8
|
@ -70,12 +70,12 @@ ccWrapper_addCVars () {
|
||||||
local role_post role_pre
|
local role_post role_pre
|
||||||
getHostRoleEnvHook
|
getHostRoleEnvHook
|
||||||
|
|
||||||
if [[ -d "$1/include" ]]; then
|
if [ -d "$1/include" ]; then
|
||||||
export NIX_${role_pre}CFLAGS_COMPILE+=" ${ccIncludeFlag:--isystem} $1/include"
|
export NIX_${role_pre}CFLAGS_COMPILE+=" -isystem $1/include"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -d "$1/Library/Frameworks" ]]; then
|
if [ -d "$1/Library/Frameworks" ]; then
|
||||||
export NIX_${role_pre}CFLAGS_COMPILE+=" -F$1/Library/Frameworks"
|
export NIX_${role_pre}CFLAGS_COMPILE+=" -iframework $1/Library/Frameworks"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue