lto: Respect LLVM_VERSION_INFO make variable, since setting CC arguments with
authorDaniel Dunbar <daniel@zuster.org>
Fri, 15 Oct 2010 22:46:15 +0000 (22:46 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 15 Oct 2010 22:46:15 +0000 (22:46 +0000)
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

tools/lto/Makefile

index e157a4c48aca8c67654faf5af31cf811fa05e0c7..294c81b9e734400630e494d8b8922d4306f94a43 100644 (file)
@@ -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