summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2024-01-18 17:04:56 -0500
committerSam James <sam@gentoo.org>2024-01-24 06:54:40 +0000
commit620324ca0cfe7d46df4cb9d70fee1430f3518467 (patch)
tree8ebf5c9efbf9a1e7a0ab9c0012445d40c10382c6 /dev-util
parentapp-office/libreoffice: migrate checking for enabled lto, to tc-is-lto (diff)
downloadgentoo-620324ca0cfe7d46df4cb9d70fee1430f3518467.tar.gz
gentoo-620324ca0cfe7d46df4cb9d70fee1430f3518467.tar.bz2
gentoo-620324ca0cfe7d46df4cb9d70fee1430f3518467.zip
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@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/cccc/cccc-3.1.6-r1.ebuild2
1 files changed, 1 insertions, 1 deletions
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
}