diff options
author | Daniel Barter <danielbarter@gmail.com> | 2022-09-17 11:46:15 -0700 |
---|---|---|
committer | Daniel Barter <danielbarter@gmail.com> | 2022-09-28 13:24:42 -0700 |
commit | 0bea4a194f7103fcedc0226a74e50657875a7c4d (patch) | |
tree | 7b75c26c67337b39aa08dcfaee1cc2ec43043d05 | |
parent | 8ed80561a4977787d3f7ee14da8503ea86f96226 (diff) | |
download | nixpkgs-0bea4a194f7103fcedc0226a74e50657875a7c4d.tar nixpkgs-0bea4a194f7103fcedc0226a74e50657875a7c4d.tar.gz nixpkgs-0bea4a194f7103fcedc0226a74e50657875a7c4d.tar.bz2 nixpkgs-0bea4a194f7103fcedc0226a74e50657875a7c4d.tar.lz nixpkgs-0bea4a194f7103fcedc0226a74e50657875a7c4d.tar.xz nixpkgs-0bea4a194f7103fcedc0226a74e50657875a7c4d.tar.zst nixpkgs-0bea4a194f7103fcedc0226a74e50657875a7c4d.zip |
cc-wrapper/setup-hook.sh: remove duplicate flags in NIX_CFLAGS_COMPILE
-rw-r--r-- | pkgs/build-support/cc-wrapper/setup-hook.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/build-support/cc-wrapper/setup-hook.sh b/pkgs/build-support/cc-wrapper/setup-hook.sh index 6a913cc4eac..94ca721cd91 100644 --- a/pkgs/build-support/cc-wrapper/setup-hook.sh +++ b/pkgs/build-support/cc-wrapper/setup-hook.sh @@ -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 } |