cc-wrapper: allow compilers to specify unsupported hardening modes

Fixes: 0fd7ef61b2 ('clang_34: Disable hardening bits (#28543)')
This commit is contained in:
Dmitry Kalinkin
2017-12-30 12:23:25 -05:00
parent 2c557e1663
commit 6d9769663d
5 changed files with 13 additions and 12 deletions
+1 -1
View File
@@ -292,7 +292,7 @@ stdenv.mkDerivation {
## Hardening support
##
export hardening_unsupported_flags=""
export hardening_unsupported_flags="${builtins.concatStringsSep " " (cc.hardeningUnsupportedFlags or [])}"
''
+ optionalString hostPlatform.isCygwin ''