mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user