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
@@ -39,6 +39,7 @@ stdenv.mkDerivation {
# GCC_INSTALL_PREFIX points here, so just use it even though it may not
# actually be a gcc
gcc = stdenv.cc.cc;
hardeningUnsupportedFlags = [ "stackprotector" ];
};
enableParallelBuilding = true;