Module: Mesa
Branch: master
Commit: 1e6f9ea21230229c0256d8189427411298132638
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1e6f9ea21230229c0256d8189427411298132638

Author: Eric Engestrom <eric.engest...@imgtec.com>
Date:   Mon Nov  6 17:18:06 2017 +0000

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 <dy...@pnwbakers.com>
Signed-off-by: Eric Engestrom <eric.engest...@imgtec.com>
Acked-by: Andres Rodriguez <andre...@gmail.com>
Reviewed-by: Chad Versace <chadvers...@chromium.org>
Reviewed-by: Matt Turner <matts...@gmail.com>
Tested-by: Chad Versace <chadvers...@chromium.org>

---

 meson.build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meson.build b/meson.build
index 6e9a799704..44e062e01e 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
 

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to