[Mesa-dev] [PATCH] configure.ac: enable non-gallium assertions for people not using --enable-debug

Marek Olšák maraeo at gmail.com
Sat Apr 11 12:11:41 PDT 2015


From: Marek Olšák <marek.olsak at amd.com>

---
 configure.ac | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 4ed4b74..113fb49 100644
--- a/configure.ac
+++ b/configure.ac
@@ -421,7 +421,9 @@ if test "x$enable_debug" = xyes; then
         fi
     fi
 else
-   DEFINES="$DEFINES -DNDEBUG"
+   if [[ $DEFINES != *"-DDEBUG"* ]]; then
+      DEFINES="$DEFINES -DNDEBUG"
+   fi
 fi
 
 dnl
-- 
2.1.0



More information about the mesa-dev mailing list