aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-12-18 19:03:35 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-12-18 20:50:57 +0100
commit65840c61dc7a43c962ef9649abdb05efe7479ba3 (patch)
tree9d95c43d8063daabfd174b44b12fb3ba96760d7e
parent1cf02bb504bdb0e3a54e52e173cf48d1928a00ce (diff)
downloadsparse-dev-65840c61dc7a43c962ef9649abdb05efe7479ba3.tar.gz
build: only need includedir from llvm-config
sparse-llvm doesn't need to full output of 'llvm-config --cflags', it only needs where LLVM's header files can be found. So, use 'llvm-config --includedir' instead. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 01342343..beaff7a9 100644
--- a/Makefile
+++ b/Makefile
@@ -160,7 +160,7 @@ ifeq ($(shell expr "$(LLVM_VERSION)" : '[3-9]\.'),2)
LLVM_PROGS := sparse-llvm
$(LLVM_PROGS): LD := g++
LLVM_LDFLAGS := $(shell $(LLVM_CONFIG) --ldflags)
-LLVM_CFLAGS := $(shell $(LLVM_CONFIG) --cflags | sed -e "s/-DNDEBUG//g" | sed -e "s/-pedantic//g")
+LLVM_CFLAGS := -I$(shell $(LLVM_CONFIG) --includedir)
LLVM_LIBS := $(shell $(LLVM_CONFIG) --libs)
LLVM_LIBS += $(shell $(LLVM_CONFIG) --system-libs 2>/dev/null)
PROGRAMS += $(LLVM_PROGS)