LLVM bindings: allow to specify path to llvm-config default tip
authorJan Vrany <jan.vrany@fit.cvut.cz>
Thu, 17 Sep 2015 07:36:40 +0100
changeset 49 307d55f736ec
parent 48 a5c898296427
LLVM bindings: allow to specify path to llvm-config ..by setting LLVM_CONFIG variable when generating definitions for LLVM bindings. Example: make LVM_CONFIG=~/Projects/LLVM/sources1/build/Debug+Asserts/bin/llvm-config
resources/examples/llvm-c-ext/Makefile
--- a/resources/examples/llvm-c-ext/Makefile	Wed Sep 16 06:25:43 2015 +0100
+++ b/resources/examples/llvm-c-ext/Makefile	Thu Sep 17 07:36:40 2015 +0100
@@ -1,5 +1,6 @@
 CC=gccxml.real
-CFLAGS=$(shell llvm-config-3.8 --cflags)
+LLVM_CONFIG ?= llvm-config-3.8
+CFLAGS=$(shell $(LLVM_CONFIG) --cflags)
 XSLTPROC=xsltproc
 XML2DEF_XSL=../../styles/gccxml2def.xsl