reduce security setup hook duplication
This commit is contained in:
parent
949c4017b5
commit
ce4f1098ca
@ -1,7 +1,10 @@
|
|||||||
noDeprecatedDeclarations() {
|
noDeprecatedDeclarations() {
|
||||||
# Security.framework has about 2000 deprecated constants, all of which the user will be
|
# Security.framework has about 2000 deprecated constants, all of which the user will be
|
||||||
# warned about at compilation time
|
# warned about at compilation time
|
||||||
NIX_CFLAGS_COMPILE+=" -Wno-deprecated-declarations"
|
flag="-Wno-deprecated-declarations"
|
||||||
|
if [[ "$NIX_CFLAGS_COMPILE" != *$flag* ]]; then
|
||||||
|
NIX_CFLAGS_COMPILE+=" $flag"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
envHooks+=(noDeprecatedDeclarations)
|
envHooks+=(noDeprecatedDeclarations)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user