[llvm] r211091 - Support: Inject LLVM_VERSION_INFO into the Support library
Justin Bogner
mail at justinbogner.com
Mon Jun 16 23:52:47 PDT 2014
Author: bogner
Date: Tue Jun 17 01:52:47 2014
New Revision: 211091
URL: http://llvm.org/viewvc/llvm-project?rev=211091&view=rev
Log:
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.
Modified:
llvm/trunk/lib/Support/Makefile
Modified: llvm/trunk/lib/Support/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Makefile?rev=211091&r1=211090&r2=211091&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Makefile (original)
+++ llvm/trunk/lib/Support/Makefile Tue Jun 17 01:52:47 2014
@@ -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
More information about the llvm-commits
mailing list