meson: only turn on Mesa's DEBUG for buildtype==debug
authorEric Engestrom <eric.engestrom@imgtec.com>
Mon, 6 Nov 2017 17:18:06 +0000 (17:18 +0000)
committerEric Engestrom <eric.engestrom@imgtec.com>
Tue, 7 Nov 2017 11:01:32 +0000 (11:01 +0000)
As discussed in this thread:
https://lists.freedesktop.org/archives/mesa-dev/2017-November/175104.html

Cc: Dylan Baker <dylan@pnwbakers.com>
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Acked-by: Andres Rodriguez <andresx7@gmail.com>
Reviewed-by: Chad Versace <chadversary@chromium.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Tested-by: Chad Versace <chadversary@chromium.org>
meson.build

index 6e9a799704ecf606b6895a53f1bbb387f414350f..44e062e01e9fd00d9a31da49b4b07bd47db9de06 100644 (file)
@@ -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