]> code.ossystems Code Review - openembedded-core.git/commit
meson.bbclass: Make the default buildtype "debug" if DEBUG_BUILD is 1
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Thu, 26 Aug 2021 12:59:12 +0000 (14:59 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 27 Aug 2021 10:53:23 +0000 (11:53 +0100)
commit7c7c353858a020153be5dba78480b91a28c7a05b
tree13d35d63117c1e0bc015ce2e130ff86b769f67f8
parentde0aa1700ed4e6f04b0a233eb1f6d2ac598e7ed8
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.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/meson.bbclass