meson.eclass: fix setting BUILD_DIR after the lto refactor

BUILD_DIR is an eclass variable and should be publicly, globally set.

Closes: https://bugs.gentoo.org/925939
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Eli Schwartz
2024-03-01 15:47:45 -05:00
committed by Sam James
parent 92fbf29e39
commit f2e1792ded

View File

@@ -374,8 +374,6 @@ setup_meson_src_configure() {
MESONARGS+=( --cross-file "$(_meson_create_cross_file)" )
fi
BUILD_DIR="${BUILD_DIR:-${WORKDIR}/${P}-build}"
# Handle quoted whitespace
eval "local -a MYMESONARGS=( ${MYMESONARGS} )"
@@ -412,6 +410,8 @@ meson_src_configure() {
[[ -n "${NINJA_DEPEND}" ]] || ewarn "Unknown value '${NINJA}' for \${NINJA}"
BUILD_DIR="${BUILD_DIR:-${WORKDIR}/${P}-build}"
(
setup_meson_src_configure "$@"
MESONARGS+=(