mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 09:32:14 +02:00
meson.bbclass: Make the default buildtype "debug" if DEBUG_BUILD is 1
Setting the Meson buildtype to "debug" will by default only enable the
-g option to the compiler, which should not matter for OE-Core as it is
already enabled by setting DEBUG_BUILD to 1 in the first place. However,
if the package uses get_option('debug') in its meson.build files to
enable package specific debug code, this will now trigger as intended.
(From OE-Core rev: 7c7c353858a020153be5dba78480b91a28c7a05b)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
91a29ab9e9
commit
e61c030679
@@ -12,7 +12,8 @@ MESON_SOURCEPATH = "${S}"
|
||||
def noprefix(var, d):
|
||||
return d.getVar(var).replace(d.getVar('prefix') + '/', '', 1)
|
||||
|
||||
MESON_BUILDTYPE ?= "plain"
|
||||
MESON_BUILDTYPE ?= "${@oe.utils.vartrue('DEBUG_BUILD', 'debug', 'plain', d)}"
|
||||
MESON_BUILDTYPE[vardeps] += "DEBUG_BUILD"
|
||||
MESONOPTS = " --prefix ${prefix} \
|
||||
--buildtype ${MESON_BUILDTYPE} \
|
||||
--bindir ${@noprefix('bindir', d)} \
|
||||
|
||||
Reference in New Issue
Block a user