[Buildroot] [PATCHv2 2/7] core: enable 'NDEBUG' unless BR2_ENABLE_RUNTIME_DEBUG is set

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sat Feb 13 21:56:10 UTC 2021


On Fri, 12 Feb 2021 14:54:45 +0100
Thomas De Schampheleire <patrickdepinguin at gmail.com> wrote:

> From: Thomas De Schampheleire <thomas.de_schampheleire at nokia.com>
> 
> A common way to disable runtime assertions is by honoring the 'NDEBUG'
> preprocessor flag. Set it when BR2_ENABLE_RUNTIME_DEBUG is disabled (the
> default case).

How "common" is that? It feels a pretty "random" definition to me. I'm
not sure we want to randomly pass -DNDEBUG to all our packages, without
knowing what the meaning of NDEBUG is for all those packages.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list