[Mesa-dev] [PATCH mesa 2/2] meson: only turn on Mesa's DEBUG for buildtype==debug

Eric Engestrom eric.engestrom at imgtec.com
Mon Nov 6 17:19:35 UTC 2017


Cc: Dylan Baker <dylan at pnwbakers.com>
Cc: Chad Versace <chadversary at chromium.org>
Signed-off-by: Eric Engestrom <eric.engestrom at imgtec.com>
---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 6e9a799704ecf606b689..78d51b9b9b580fdc4058 100644
--- a/meson.build
+++ b/meson.build
@@ -350,7 +350,7 @@ if cc.get_id() == 'gcc' and cc.version().version_compare('< 4.4.6')
 endif
 
 # Define DEBUG for debug and debugoptimized builds
-if get_option('buildtype').startswith('debug')
+if get_option('buildtype') == 'debug'
   pre_args += '-DDEBUG'
 endif
 
-- 
Cheers,
  Eric



More information about the mesa-dev mailing list