darwin private frameworks setup hook: NIX_CFLAGS_COMPILE may be undefined

This commit is contained in:
John Ericson 2019-11-07 15:12:29 -05:00
parent b78e84097f
commit beda0365a6

View File

@ -1,6 +1,6 @@
addPrivateFrameworks() {
flag="-F/System/Library/PrivateFrameworks"
if [[ "$NIX_CFLAGS_COMPILE" != *$flag* ]]; then
if [[ "${NIX_CFLAGS_COMPILE-}" != *$flag* ]]; then
NIX_CFLAGS_COMPILE+=" $flag"
fi
}