meson.eclass: prefer -D buildtype instead of --buildtype

Because that is the logic which meson-python hardcodes, and meson needs
to match calling convention.

Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/35528
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Eli Schwartz
2024-02-20 00:39:51 -05:00
committed by Sam James
parent 5e7b32c59d
commit b95ea11330

View File

@@ -367,7 +367,7 @@ setup_meson_src_configure() {
)
if [[ -n ${EMESON_BUILDTYPE} ]]; then
MESONARGS+=( --buildtype "${EMESON_BUILDTYPE}" )
MESONARGS+=( -Dbuildtype="${EMESON_BUILDTYPE}" )
fi
if tc-is-cross-compiler; then