configs: do not let llvm-config define NDEBUG in debug builds
authorBrian Paul <brianp@vmware.com>
Mon, 11 Jul 2011 16:07:32 +0000 (10:07 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 11 Jul 2011 16:07:43 +0000 (10:07 -0600)
Following the examples of Marek and Jose for autoconf and scons.

configs/linux-llvm

index 54d82b5376c12d7cae2401eb23ad9aade3e396d0..ef6c7bb105a9ca8501c0fd04b015ccfd7b099f4d 100644 (file)
@@ -30,7 +30,7 @@ else
 endif
 
 ifeq ($(MESA_LLVM),1)
-  LLVM_CFLAGS=`llvm-config --cppflags`
+  LLVM_CFLAGS=`llvm-config --cppflags|sed 's/-DNDEBUG\>//g'`
   LLVM_CXXFLAGS=`llvm-config --cxxflags` -Wno-long-long
   LLVM_LDFLAGS = $(shell llvm-config --ldflags)
   LLVM_LIBS = $(shell llvm-config --libs)