mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-23 10:12:12 +01:00
eclass/meson: Sync with Gentoo
It's from Gentoo commit a4eae64aa24da57d3f6292768565ed3a4115c99a. Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
parent
07cbdbd73c
commit
2694c6f23b
@ -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
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
# @ECLASS: meson.eclass
|
# @ECLASS: meson.eclass
|
||||||
@ -305,6 +305,18 @@ setup_meson_src_configure() {
|
|||||||
MESONARGS+=( -Db_lto_threads=${v} )
|
MESONARGS+=( -Db_lto_threads=${v} )
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
if has_version -b ">=dev-build/meson-1.10.0" ; then
|
||||||
|
local v=$(get-flag -flto-incremental=)
|
||||||
|
v=${v#-flto-incremental=}
|
||||||
|
if [[ ${v} ]] ; then
|
||||||
|
MESONARGS+=(
|
||||||
|
-Db_thinlto_cache=true
|
||||||
|
-Db_thinlto_cache_dir=${v}
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# finally, remove it from *FLAGS to avoid passing it:
|
# finally, remove it from *FLAGS to avoid passing it:
|
||||||
# - twice, with potentially different values
|
# - twice, with potentially different values
|
||||||
# - on excluded targets
|
# - on excluded targets
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user