diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-12-18 19:03:35 +0100 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-12-18 20:50:57 +0100 |
| commit | 65840c61dc7a43c962ef9649abdb05efe7479ba3 (patch) | |
| tree | 9d95c43d8063daabfd174b44b12fb3ba96760d7e | |
| parent | 1cf02bb504bdb0e3a54e52e173cf48d1928a00ce (diff) | |
| download | sparse-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-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |
