mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-27 20:09:36 +00:00
cc-wrapper/setup-hook.sh: remove duplicate flags in NIX_CFLAGS_COMPILE
This commit is contained in:
parent
8ed80561a4
commit
0bea4a194f
@ -69,10 +69,12 @@ ccWrapper_addCVars () {
|
|||||||
getHostRoleEnvHook
|
getHostRoleEnvHook
|
||||||
|
|
||||||
if [ -d "$1/include" ]; then
|
if [ -d "$1/include" ]; then
|
||||||
|
(! echo "$NIX_CFLAGS_COMPILE" | grep -q -F "$1/include") &&
|
||||||
export NIX_CFLAGS_COMPILE${role_post}+=" -isystem $1/include"
|
export NIX_CFLAGS_COMPILE${role_post}+=" -isystem $1/include"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d "$1/Library/Frameworks" ]; then
|
if [ -d "$1/Library/Frameworks" ]; then
|
||||||
|
(! echo "$NIX_CFLAGS_COMPILE" | grep -q -F "$1/Library/Frameworks") &&
|
||||||
export NIX_CFLAGS_COMPILE${role_post}+=" -iframework $1/Library/Frameworks"
|
export NIX_CFLAGS_COMPILE${role_post}+=" -iframework $1/Library/Frameworks"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user