From eccb70a7f91b2d22582587f26d1a28bb31408b45 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 18 May 2019 00:10:51 +0100 Subject: gentoo resync : 18.05.2019 --- eclass/toolchain.eclass | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'eclass/toolchain.eclass') diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 17850db43045..9df8ecf69bea 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -174,6 +174,7 @@ if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then tc_version_is_at_least 8.0 && IUSE+=" systemtap" TC_FEATURES+=(systemtap) tc_version_is_at_least 9.0 && IUSE+=" d" + tc_version_is_at_least 9.1 && IUSE+=" lto" fi SLOT="${GCC_CONFIG_VER}" @@ -993,6 +994,11 @@ toolchain_src_configure() { confgcc+=( --enable-libstdcxx-time ) fi + # Build compiler using LTO + if tc_version_is_at_least 9.1 && use_if_iuse lto ; then + confgcc+=( --with-build-config=bootstrap-lto ) + fi + # Support to disable pch when building libstdcxx if tc_version_is_at_least 6.0 && ! use_if_iuse pch ; then confgcc+=( --disable-libstdcxx-pch ) -- cgit v1.2.3