The debug-optimize.inc is used to collect debug optimization configuration, override MESON_BUILDTYPE for target when debug optimization is enabled (fragment core/yocto/debug-optimize)
Suggested-by: Richard Purdie <[email protected]> Signed-off-by: Hongxu Jia <[email protected]> --- meta/classes-recipe/meson.bbclass | 3 +-- meta/conf/distro/include/debug-optimize.inc | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/meta/classes-recipe/meson.bbclass b/meta/classes-recipe/meson.bbclass index 2c098771fe..0b857ef22a 100644 --- a/meta/classes-recipe/meson.bbclass +++ b/meta/classes-recipe/meson.bbclass @@ -25,8 +25,7 @@ MESON_TARGET ?= "" # Since 0.60.0 you can specify custom tags to install MESON_INSTALL_TAGS ?= "" -MESON_BUILDTYPE ?= "${@oe.utils.vartrue('DEBUG_BUILD', 'debug', 'plain', d)}" -MESON_BUILDTYPE[vardeps] += "DEBUG_BUILD" +MESON_BUILDTYPE ??= "plain" MESONOPTS = " --buildtype ${MESON_BUILDTYPE} \ --prefix ${prefix} \ diff --git a/meta/conf/distro/include/debug-optimize.inc b/meta/conf/distro/include/debug-optimize.inc index c11d792094..3f22aebbab 100644 --- a/meta/conf/distro/include/debug-optimize.inc +++ b/meta/conf/distro/include/debug-optimize.inc @@ -40,3 +40,6 @@ EXTRA_OECONF:append:pn-nativesdk-debugedit = " --disable-inlined-xxhash" lcl_maybe_fortify:pn-vim = "" CXXFLAGS:append:pn-vulkan-validation-layers = " -DXXH_NO_INLINE_HINTS=1" + +# For meson.bbclass +MESON_BUILDTYPE:class-target ?= "debug" -- 2.34.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#228306): https://lists.openembedded.org/g/openembedded-core/message/228306 Mute This Topic: https://lists.openembedded.org/mt/116902150/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
