diff options
author | Zoltan Varga <vargaz@gmail.com> | 2013-09-20 00:04:49 +0400 |
---|---|---|
committer | Zoltan Varga <vargaz@gmail.com> | 2013-09-20 00:05:00 +0400 |
commit | 8ea61a7b5eface1d065b14f7859e5e92c903487d (patch) | |
tree | 8dd29144f98dbefd8bc138e6c53a0c7d8e8175dd /Makefile.am | |
parent | 84432a62a1845fb53057ab95ba6109f1ebbcc30f (diff) |
Check the version of LLVM at configure time to make sure it has a matching version.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index c9192998d89..de43007b1ca 100644 --- a/Makefile.am +++ b/Makefile.am @@ -155,3 +155,9 @@ package-inputs: done echo "</root>" >> msvc/scripts/order.xml +# Update llvm version in configure.in to the output of $LLVM_DIR/bin/llvm-config --version +update-llvm-version: + if test "x$$LLVM_DIR" = "x"; then echo "Set the make variable LLVM_DIR to the directory containing the LLVM installation."; exit 1; fi + REV=`$(LLVM_DIR)/bin/llvm-config --version` && sed -e "s,expected_llvm_version=.*,expected_llvm_version=\"$$REV\"," < configure.in > tmp && mv tmp configure.in && echo "Version set to $$REV." + + |