summaryrefslogtreecommitdiffstats
path: root/llvm
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
commitf7f2cd35dc18b59c19b676b52d6e12e4e1f88ea4 (patch)
treea0cecf50a3e798d73079bc0bc8cf8712d819f56f /llvm
parent581b59241462e12609fc7918225a18b6c16d995e (diff)
downloadbcm5719-llvm-f7f2cd35dc18b59c19b676b52d6e12e4e1f88ea4.tar.gz
bcm5719-llvm-f7f2cd35dc18b59c19b676b52d6e12e4e1f88ea4.zip
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. llvm-svn: 211091
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Support/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Support/Makefile b/llvm/lib/Support/Makefile
index 4a2185d589e..39426aaaace 100644
--- a/llvm/lib/Support/Makefile
+++ b/llvm/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
OpenPOWER on IntegriCloud