This is for parity with autotools. We were suddenly getting assertion
failures after switching to meson, see [1].

[1]: https://bugs.archlinux.org/task/58218

Signed-off-by: Jan Alexander Steffens (heftig) <jan.steff...@gmail.com>
---
 meson.build | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meson.build b/meson.build
index a4dfa62255..931e0389e6 100644
--- a/meson.build
+++ b/meson.build
@@ -705,6 +705,8 @@ endif
 # Define DEBUG for debug builds only (debugoptimized is not included on this 
one)
 if get_option('buildtype') == 'debug'
   pre_args += '-DDEBUG'
+else
+  pre_args += '-DNDEBUG'
 endif
 
 if get_option('shader-cache')
-- 
2.16.2

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

Reply via email to