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

Author: Eric Engestrom <[email protected]>
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 <[email protected]>
Signed-off-by: Eric Engestrom <[email protected]>
Acked-by: Andres Rodriguez <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Tested-by: Chad Versace <[email protected]>

---

 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
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to