cc-wrapper: fix inverted logic around fortify & fortify3 mutual exclusion

This commit is contained in:
Robert Scott 2023-02-21 00:27:57 +00:00
parent fc3641aa1e
commit 436b0d9e1f

View File

@ -19,7 +19,7 @@ for flag in @hardening_unsupported_flags@; do
done
# make fortify and fortify3 mutually exclusive
if [[ -z "${hardeningEnableMap[fortify3]-}" ]]; then
if [[ -n "${hardeningEnableMap[fortify3]-}" ]]; then
unset -v "hardeningEnableMap['fortify']"
fi