[Mesa-dev] [PATCH 1/2] configure.ac: add _DEBUG to strip_unwanted_llvm_flags

Tim Rowley timothy.o.rowley at intel.com
Tue Oct 3 20:23:43 UTC 2017


Assert-enabled builds of llvm add _DEBUG to the LLVM_CFLAGS.

This was causing a crash with swr running the ParaView
waveletcontour.py test, due to a bug in our _DEBUG code.
---
 configure.ac | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure.ac b/configure.ac
index 903a3979d4..b2768f46c0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -987,6 +987,7 @@ strip_unwanted_llvm_flags() {
     echo " `$1` " | sed -E \
         -e 's/[[[:space:]]]+-m[[^[:space:]]]*//g' \
         -e 's/[[[:space:]]]+-DNDEBUG[[[:space:]]]/ /g' \
+        -e 's/[[[:space:]]]+-D_DEBUG[[[:space:]]]/ /g' \
         -e 's/[[[:space:]]]+-D_GNU_SOURCE[[[:space:]]]/ /g' \
         -e 's/[[[:space:]]]+-pedantic[[[:space:]]]/ /g' \
         -e 's/[[[:space:]]]+-W[[^[:space:]]]*//g' \
-- 
2.11.0



More information about the mesa-dev mailing list