1 |
commit: 29f0b3ce320c2740853d83cbef6ba1037ffedddf |
2 |
Author: Jory Pratt <anarchy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 20 21:03:57 2019 +0000 |
4 |
Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 20 21:04:33 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=29f0b3ce |
7 |
|
8 |
eclass: sync 9.1 gcc changes from tree to overlay |
9 |
|
10 |
eclass/toolchain.eclass | 6 ++++++ |
11 |
1 file changed, 6 insertions(+) |
12 |
|
13 |
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass |
14 |
index 970d2c8..91297c0 100644 |
15 |
--- a/eclass/toolchain.eclass |
16 |
+++ b/eclass/toolchain.eclass |
17 |
@@ -174,6 +174,7 @@ if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then |
18 |
tc_version_is_at_least 8.0 && |
19 |
IUSE+=" systemtap" TC_FEATURES+=(systemtap) |
20 |
tc_version_is_at_least 9.0 && IUSE+=" d" |
21 |
+ tc_version_is_at_least 9.1 && IUSE+=" lto" |
22 |
fi |
23 |
|
24 |
SLOT="${GCC_CONFIG_VER}" |
25 |
@@ -993,6 +994,11 @@ toolchain_src_configure() { |
26 |
confgcc+=( --enable-libstdcxx-time ) |
27 |
fi |
28 |
|
29 |
+ # Build compiler using LTO |
30 |
+ if tc_version_is_at_least 9.1 && use_if_iuse lto ; then |
31 |
+ confgcc+=( --with-build-config=bootstrap-lto ) |
32 |
+ fi |
33 |
+ |
34 |
# Support to disable pch when building libstdcxx |
35 |
if tc_version_is_at_least 6.0 && ! use_if_iuse pch ; then |
36 |
confgcc+=( --disable-libstdcxx-pch ) |