eclass/meson: Sync with Gentoo

It's from Gentoo commit 21b3f9ceef131258a721b1b29e52d0f9c4fd2ea4.
This commit is contained in:
Flatcar Buildbot 2024-01-15 07:13:06 +00:00 committed by Krzesimir Nowak
parent 64c31e1b80
commit 7912c161cf

View File

@ -1,4 +1,4 @@
# Copyright 2017-2023 Gentoo Authors # Copyright 2017-2024 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
@ -43,9 +43,9 @@ _MESON_ECLASS=1
inherit multiprocessing ninja-utils python-utils-r1 toolchain-funcs inherit multiprocessing ninja-utils python-utils-r1 toolchain-funcs
BDEPEND=">=dev-util/meson-1.2.1 BDEPEND=">=dev-build/meson-1.2.1
${NINJA_DEPEND} ${NINJA_DEPEND}
dev-util/meson-format-array dev-build/meson-format-array
" "
# @ECLASS_VARIABLE: BUILD_DIR # @ECLASS_VARIABLE: BUILD_DIR
@ -334,6 +334,10 @@ meson_src_configure() {
# It's Gentoo policy to not have builds die on blanket -Werror, as it's # It's Gentoo policy to not have builds die on blanket -Werror, as it's
# an upstream development matter. bug #754279. # an upstream development matter. bug #754279.
-Dwerror=false -Dwerror=false
# Prevent projects from enabling LTO by default. In Gentoo, LTO is
# enabled via setting *FLAGS appropriately.
-Db_lto=false
) )
if [[ -n ${EMESON_BUILDTYPE} ]]; then if [[ -n ${EMESON_BUILDTYPE} ]]; then