diff options
Diffstat (limited to 'sys-devel/clang-common/clang-common-18.0.0_pre20240113.ebuild')
-rw-r--r-- | sys-devel/clang-common/clang-common-18.0.0_pre20240113.ebuild | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys-devel/clang-common/clang-common-18.0.0_pre20240113.ebuild b/sys-devel/clang-common/clang-common-18.0.0_pre20240113.ebuild index 35e7e46f7c4f..dbc4a213e1c4 100644 --- a/sys-devel/clang-common/clang-common-18.0.0_pre20240113.ebuild +++ b/sys-devel/clang-common/clang-common-18.0.0_pre20240113.ebuild @@ -215,6 +215,8 @@ src_install() { #endif EOF + # TODO: Maybe -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST for + # non-hardened? if use hardened ; then cat >> "${ED}/etc/clang/gentoo-hardened.cfg" <<-EOF || die # Options below are conditional on USE=hardened. @@ -223,7 +225,7 @@ src_install() { # Analogue to GLIBCXX_ASSERTIONS # https://libcxx.llvm.org/UsingLibcxx.html#assertions-mode # https://libcxx.llvm.org/Hardening.html#using-hardened-mode - -D_LIBCPP_ENABLE_HARDENED_MODE=1 + -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE EOF cat >> "${ED}/etc/clang/gentoo-hardened-ld.cfg" <<-EOF || die |