commit:     f2e1792ded67e62edc85e92e84f65d773a8f05bd
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Fri Mar  1 20:47:45 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Mar  1 20:50:31 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2e1792d

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 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/meson.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eclass/meson.eclass b/eclass/meson.eclass
index 9e877be53309..3bf0ba9ebe97 100644
--- a/eclass/meson.eclass
+++ b/eclass/meson.eclass
@@ -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+=(

Reply via email to