aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-10-15 22:46:15 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-10-15 22:46:15 +0000
commit8535403ee0e6bd3f1e56236e3dc5d007c5c9c02b (patch)
tree4c0ca98b65688a18060c210760eb686cad43c284
parent315030ca74f7c3cf8bf7f7d29da667ac9fc45bb0 (diff)
downloadexternal_llvm-8535403ee0e6bd3f1e56236e3dc5d007c5c9c02b.zip
external_llvm-8535403ee0e6bd3f1e56236e3dc5d007c5c9c02b.tar.gz
external_llvm-8535403ee0e6bd3f1e56236e3dc5d007c5c9c02b.tar.bz2
lto: Respect LLVM_VERSION_INFO make variable, since setting CC arguments with
spaces gives tests fits and shell escaping is an art best left to jabberwockies. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116632 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--tools/lto/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/lto/Makefile b/tools/lto/Makefile
index e157a4c..294c81b 100644
--- a/tools/lto/Makefile
+++ b/tools/lto/Makefile
@@ -24,6 +24,10 @@ LINK_COMPONENTS := $(TARGETS_TO_BUILD) ipo scalaropts linker bitreader bitwriter
include $(LEVEL)/Makefile.common
+ifdef LLVM_VERSION_INFO
+CXX.Flags += -DLLVM_VERSION_INFO='"$(LLVM_VERSION_INFO)"'
+endif
+
ifeq ($(HOST_OS),Darwin)
# Special hack to allow libLTO to have an offset version number.
ifdef LLVM_LTO_VERSION_OFFSET