commit:     620324ca0cfe7d46df4cb9d70fee1430f3518467
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Thu Jan 18 22:04:56 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jan 24 06:54:40 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=620324ca

dev-util/cccc: migrate checking for enabled lto, to tc-is-lto

This toolchain func was recently added, and is a lot more reliable than
get-flagq, for example if the active flags contain `-flto -fno-lto` then
tc-is-lto gets it correct. We would rather use this wherever possible.

Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/cccc/cccc-3.1.6-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/cccc/cccc-3.1.6-r1.ebuild 
b/dev-util/cccc/cccc-3.1.6-r1.ebuild
index c856cbe32bd5..bd20dbc7f7e8 100644
--- a/dev-util/cccc/cccc-3.1.6-r1.ebuild
+++ b/dev-util/cccc/cccc-3.1.6-r1.ebuild
@@ -26,7 +26,7 @@ src_prepare() {
        default
 
        use mfc && eapply "${FILESDIR}"/${PN}-c_dialect.patch
-       is-flagq -flto* && filter-flags -fuse-linker-plugin
+       tc-is-lto && filter-flags -fuse-linker-plugin
        filter-lto
 }
 

Reply via email to