Skip to content

Commit

Permalink
cc-wrapper/setup-hook.sh: remove duplicate flags in NIX_CFLAGS_COMPILE
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbarter committed Sep 28, 2022
1 parent 8ed8056 commit 0bea4a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/build-support/cc-wrapper/setup-hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,12 @@ ccWrapper_addCVars () {
getHostRoleEnvHook

if [ -d "$1/include" ]; then
(! echo "$NIX_CFLAGS_COMPILE" | grep -q -F "$1/include") &&
export NIX_CFLAGS_COMPILE${role_post}+=" -isystem $1/include"
fi

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"
fi
}
Expand Down

0 comments on commit 0bea4a1

Please sign in to comment.