diff options
author | Shane Peelar <lookatyouhacker@gmail.com> | 2019-05-08 14:55:53 -0400 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2019-05-13 23:38:22 +0100 |
commit | ee307a9f5d9e77ce1dbb3655d4ba7f12fffaf554 (patch) | |
tree | 0ae8aa4137e75003ab1b6061c0ae002a1eb60b66 /eclass | |
parent | games-action/supertuxkart: Fix automagic dependency on libsquish (diff) | |
download | gentoo-ee307a9f5d9e77ce1dbb3655d4ba7f12fffaf554.tar.gz gentoo-ee307a9f5d9e77ce1dbb3655d4ba7f12fffaf554.tar.bz2 gentoo-ee307a9f5d9e77ce1dbb3655d4ba7f12fffaf554.zip |
{sys-devel/gcc,dev-lang/gnat-gpl}: add a USE for building GCC with LTO
Bug: https://bugs.gentoo.org/685634
Signed-off-by: Shane Peelar <lookatyouhacker@gmail.com>
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 6 |
1 files changed, 6 insertions, 0 deletions
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 ) |