From: Eric Engestrom Date: Mon, 6 Nov 2017 17:18:06 +0000 (+0000) Subject: meson: only turn on Mesa's DEBUG for buildtype==debug X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1e6f9ea21230229c0256d8189427411298132638;p=mesa.git meson: only turn on Mesa's DEBUG for buildtype==debug As discussed in this thread: https://lists.freedesktop.org/archives/mesa-dev/2017-November/175104.html Cc: Dylan Baker Signed-off-by: Eric Engestrom Acked-by: Andres Rodriguez Reviewed-by: Chad Versace Reviewed-by: Matt Turner Tested-by: Chad Versace --- diff --git a/meson.build b/meson.build index 6e9a799704e..44e062e01e9 100644 --- a/meson.build +++ b/meson.build @@ -349,8 +349,8 @@ if cc.get_id() == 'gcc' and cc.version().version_compare('< 4.4.6') error('When using GCC, version 4.4.6 or later is required.') endif -# Define DEBUG for debug and debugoptimized builds -if get_option('buildtype').startswith('debug') +# Define DEBUG for debug builds only (debugoptimized is not included on this one) +if get_option('buildtype') == 'debug' pre_args += '-DDEBUG' endif