Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Mon, 30 May 2022 19:59:27
Message-Id: 1653940757.db7d9441f3bf6b56d6000b5b1255df0a4e955a99.sam@gentoo
1 commit: db7d9441f3bf6b56d6000b5b1255df0a4e955a99
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 30 19:58:40 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon May 30 19:59:17 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db7d9441
7
8 toolchain.eclass: add comment above LTO logic
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 eclass/toolchain.eclass | 2 ++
13 1 file changed, 2 insertions(+)
14
15 diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
16 index 035ee7714d6f..0ae7f7dd3839 100644
17 --- a/eclass/toolchain.eclass
18 +++ b/eclass/toolchain.eclass
19 @@ -1278,6 +1278,8 @@ toolchain_src_configure() {
20 confgcc+=( $(use_with zstd) )
21 fi
22
23 + # This only controls whether the compiler *supports* LTO, not whether
24 + # it's *built using* LTO. Hence we do it without a USE flag.
25 if tc_version_is_at_least 4.6 ; then
26 confgcc+=( --enable-lto )
27 elif tc_version_is_at_least 4.5 ; then