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"
|
2019-11-07 22:17:41 +00:00
|
|
|
if [[ "${NIX_CFLAGS_COMPILE-}" != *$flag* ]]; then
|
2015-10-29 20:55:58 +00:00
|
|
|
NIX_CFLAGS_COMPILE+=" $flag"
|
|
|
|
fi
|
2015-10-28 19:14:42 +00:00
|
|
|
}
|
|
|
|
|
2017-08-10 23:22:07 +01:00
|
|
|
addEnvHooks "$hostOffset" noDeprecatedDeclarations
|