21.1.3: incorect use "#ifndef NDEBUG"?
I'm not 100% sure but IMO it looks like it sometbing wrong about conditioal DEBUG code.
In main medon.build is:
# Define DEBUG for debug builds only (debugoptimized is not included on this one)
if get_option('buildtype') == 'debug'
pre_args += '-DDEBUG'
endif
But in many places is used NDEBUG
:
[tkloczko@barrel mesa-21.1.3]$ grep -rw NDEBUG | wc -l
242
[tkloczko@barrel mesa-21.1.3]$ grep -rw DEBUG | wc -l
383
And because of that it is not possible to build release mesa binaries with -fno-rtti because it is used in src/gallium/drivers/nouveau/codegen/nv50_ir.cpp