From 06b9b46fb365d58fb95581db497896c6bb684dbe Mon Sep 17 00:00:00 2001 From: Dmitry Babokin Date: Fri, 29 Jan 2016 23:23:59 +0300 Subject: [PATCH] Adding support for using LLVM build with -DNDEBUG --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5301fab5..6078bfd2 100644 --- a/Makefile +++ b/Makefile @@ -89,7 +89,8 @@ else endif ARCH_TYPE = $(shell arch) -LLVM_CXXFLAGS=$(shell $(LLVM_CONFIG) --cppflags) +DNDEBUG_FLAG=$(shell $(LLVM_CONFIG) --cxxflags | grep -o "\-DNDEBUG") +LLVM_CXXFLAGS=$(shell $(LLVM_CONFIG) --cppflags) $(DNDEBUG_FLAG) LLVM_VERSION=LLVM_$(shell $(LLVM_CONFIG) --version | sed -e 's/svn//' -e 's/\./_/' -e 's/\..*//') LLVM_VERSION_DEF=-D$(LLVM_VERSION)