From 1e6f9ea21230229c0256d8189427411298132638 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Mon, 6 Nov 2017 17:18:06 +0000 Subject: [PATCH] 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 --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2