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>
This commit is contained in:
Eli Schwartz
2024-01-18 17:04:56 -05:00
committed by Sam James
parent 198d1cae19
commit 620324ca0c

View File

@@ -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
}