summaryrefslogtreecommitdiff
path: root/lib/Support
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-06-17 06:52:47 +0000
committerJustin Bogner <mail@justinbogner.com>2014-06-17 06:52:47 +0000
commitfeacf821802eb294cc228d26bd3add4d918c7957 (patch)
tree15412caab45e2ea37e60d36dc02201f64cbf80ba /lib/Support
parentd0dbed10d5f08aa3efa31af7287e4c1b34735c57 (diff)
downloadllvm-feacf821802eb294cc228d26bd3add4d918c7957.tar.gz
llvm-feacf821802eb294cc228d26bd3add4d918c7957.tar.bz2
llvm-feacf821802eb294cc228d26bd3add4d918c7957.tar.xz
Support: Inject LLVM_VERSION_INFO into the Support library
Mimic r116632 in passing LLVM_VERSION_INFO from the Makefile build system to the build. This improves the -version output of tools that use llvm::cl under the configure+make system. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211091 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Support/Makefile b/lib/Support/Makefile
index 4a2185d589..39426aaaac 100644
--- a/lib/Support/Makefile
+++ b/lib/Support/Makefile
@@ -17,3 +17,7 @@ include $(LEVEL)/Makefile.common
CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
+
+ifdef LLVM_VERSION_INFO
+CompileCommonOpts += -DLLVM_VERSION_INFO='"$(LLVM_VERSION_INFO)"'
+endif