We no-longer support Clang 7 (#24164). Introduced in #20720.
This reverts commit e9189a750b237eba1befc6b16c12c2cee3e0176c.
ACK 460854c1eba7a509327d17fd995b27d9cc8ad5f6 makes sense to revert this workaround.
934 | @@ -935,10 +935,7 @@ if test "$use_hardening" != "no"; then 935 | AX_CHECK_COMPILE_FLAG([-Wstack-protector], [HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS -Wstack-protector"]) 936 | AX_CHECK_COMPILE_FLAG([-fstack-protector-all], [HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS -fstack-protector-all"]) 937 | 938 | - dnl -fcf-protection used with Clang 7 causes ld to emit warnings: 939 | - dnl ld: error: ... <corrupt x86 feature size: 0x8> 940 | - dnl Use CHECK_LINK_FLAG & --fatal-warnings to ensure we won't use the flag in this case. 941 | - AX_CHECK_LINK_FLAG([-fcf-protection=full], [HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS -fcf-protection=full"], [], [$LDFLAG_WERROR]) 942 | + AX_CHECK_COMPILE_FLAG([-fcf-protection=full],[HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS -fcf-protection=full"])
style nit: Add a space after the comma?
AX_CHECK_COMPILE_FLAG([-fcf-protection=full], [HARDENED_CXXFLAGS="$HARDENED_CXXFLAGS -fcf-protection=full"])
sure
ACK 460854c1eba7a509327d17fd995b27d9cc8ad5f6
We no-longer support Clang 7 (#24164).
This reverts commit e9189a750b237eba1befc6b16c12c2cee3e0176c.
re-ACK a7973bf8f46a7fe1c70d33a1098da6aba66baaed