apple-sdk setup hooks: NIX_CFLAGS_COMPILE may be undefined

This commit is contained in:
John Ericson
2019-11-08 13:28:59 -05:00
parent 6fb526b32c
commit f1481f2c90
2 changed files with 2 additions and 2 deletions
@@ -2,7 +2,7 @@ noDeprecatedDeclarations() {
# Security.framework has about 2000 deprecated constants, all of which the user will be
# warned about at compilation time
flag="-Wno-deprecated-declarations"
if [[ "$NIX_CFLAGS_COMPILE" != *$flag* ]]; then
if [[ "${NIX_CFLAGS_COMPILE-}" != *$flag* ]]; then
NIX_CFLAGS_COMPILE+=" $flag"
fi
}