diff options
author | Justin Bogner <mail@justinbogner.com> | 2014-06-17 06:52:47 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2014-06-17 06:52:47 +0000 |
commit | f7f2cd35dc18b59c19b676b52d6e12e4e1f88ea4 (patch) | |
tree | a0cecf50a3e798d73079bc0bc8cf8712d819f56f /llvm | |
parent | 581b59241462e12609fc7918225a18b6c16d995e (diff) | |
download | bcm5719-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/Makefile | 4 |
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 |