From 620324ca0cfe7d46df4cb9d70fee1430f3518467 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Thu, 18 Jan 2024 17:04:56 -0500 Subject: [PATCH] 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 Signed-off-by: Sam James --- 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 c856cbe32bd5c..bd20dbc7f7e87 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 }