On 11/10/25 11:47 AM, Sam James wrote:
> diff --git a/eclass/meson.eclass b/eclass/meson.eclass
> index a2bc5537e4589..d6b3c63e5faac 100644
> --- a/eclass/meson.eclass
> +++ b/eclass/meson.eclass
> @@ -1,4 +1,4 @@
> -# Copyright 2017-2024 Gentoo Authors
> +# Copyright 2017-2025 Gentoo Authors
> # Distributed under the terms of the GNU General Public License v2
>
> # @ECLASS: meson.eclass
> @@ -305,6 +305,17 @@ setup_meson_src_configure() {
> MESONARGS+=( -Db_lto_threads=${v} )
> ;;
> esac
> +
> + if has_version -b ">=dev-build/meson-1.10.0" ; then
> + local v=$(get-flag flto-incremental)
> + if [[ ${v} ]] ; then
> + MESONARGS+=(
> + -Db_thinlto_cache=true
> + -Db_thinlto_cache_dir=${v}$ . tests-common.sh; EAPI=8; inherit flag-o-matic $ CFLAGS="-flto-incremental-cache-size=100 -flto-incremental=/some-path" $ get-flag flto-incremental -flto-incremental-cache-size=100 This unsafely assumes the order in ways that may not result in the build system being happy... -- Eli Schwartz
OpenPGP_signature.asc
Description: OpenPGP digital signature
