2015-10-28 20:14:42 +01:00
|
|
|
noDeprecatedDeclarations() {
|
|
|
|
# Security.framework has about 2000 deprecated constants, all of which the user will be
|
|
|
|
# warned about at compilation time
|
2015-10-29 21:55:58 +01:00
|
|
|
flag="-Wno-deprecated-declarations"
|
|
|
|
if [[ "$NIX_CFLAGS_COMPILE" != *$flag* ]]; then
|
|
|
|
NIX_CFLAGS_COMPILE+=" $flag"
|
|
|
|
fi
|
2015-10-28 20:14:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
envHooks+=(noDeprecatedDeclarations)
|