projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
581b592
)
Support: Inject LLVM_VERSION_INFO into the Support library
author
Justin Bogner
<mail@justinbogner.com>
Tue, 17 Jun 2014 06:52:47 +0000
(06:52 +0000)
committer
Justin Bogner
<mail@justinbogner.com>
Tue, 17 Jun 2014 06:52:47 +0000
(06:52 +0000)
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
llvm/lib/Support/Makefile
patch
|
blob
|
history
diff --git
a/llvm/lib/Support/Makefile
b/llvm/lib/Support/Makefile
index
4a2185d
..
39426aa
100644
(file)
--- 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