commit:     db7d9441f3bf6b56d6000b5b1255df0a4e955a99
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon May 30 19:58:40 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon May 30 19:59:17 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db7d9441

toolchain.eclass: add comment above LTO logic

Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/toolchain.eclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 035ee7714d6f..0ae7f7dd3839 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1278,6 +1278,8 @@ toolchain_src_configure() {
                confgcc+=( $(use_with zstd) )
        fi
 
+       # This only controls whether the compiler *supports* LTO, not whether
+       # it's *built using* LTO. Hence we do it without a USE flag.
        if tc_version_is_at_least 4.6 ; then
                confgcc+=( --enable-lto )
        elif tc_version_is_at_least 4.5 ; then

Reply via email to