Commit 1e6f9ea2 authored by Eric Engestrom's avatar Eric Engestrom
Browse files

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 <dylan@pnwbakers.com>
Signed-off-by: default avatarEric Engestrom <eric.engestrom@imgtec.com>
Acked-by: default avatarAndres Rodriguez <andresx7@gmail.com>
Reviewed-by: default avatarChad Versace <chadversary@chromium.org>
Reviewed-by: default avatarMatt Turner <mattst88@gmail.com>
Tested-by: default avatarChad Versace <chadversary@chromium.org>
parent d5597f09
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment