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