summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2024-02-20 00:39:51 -0500
committerSam James <sam@gentoo.org>2024-03-01 19:25:17 +0000
commitb95ea11330e446d0deb89ca7d78356cb2a7d0d06 (patch)
tree58d2a108d6c02a84b8bb2fa8a3f55437087752dd /eclass
parentmeson.eclass: wire up LTO support directly into the meson options (diff)
downloadgentoo-b95ea11330e446d0deb89ca7d78356cb2a7d0d06.tar.gz
gentoo-b95ea11330e446d0deb89ca7d78356cb2a7d0d06.tar.bz2
gentoo-b95ea11330e446d0deb89ca7d78356cb2a7d0d06.zip
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>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/meson.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/meson.eclass b/eclass/meson.eclass
index b24bb40eb0a0..9e877be53309 100644
--- a/eclass/meson.eclass
+++ b/eclass/meson.eclass
@@ -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