[llvm-branch-commits] [cfe-branch] r102808 - /cfe/branches/Apple/cremebrulee-IB/Makefile

Daniel Dunbar daniel at zuster.org
Fri Apr 30 16:51:39 PDT 2010


Author: ddunbar
Date: Fri Apr 30 18:51:39 2010
New Revision: 102808

URL: http://llvm.org/viewvc/llvm-project?rev=102808&view=rev
Log:
Set build version/subversion for dylib versioning.

Modified:
    cfe/branches/Apple/cremebrulee-IB/Makefile

Modified: cfe/branches/Apple/cremebrulee-IB/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/cremebrulee-IB/Makefile?rev=102808&r1=102807&r2=102808&view=diff
==============================================================================
--- cfe/branches/Apple/cremebrulee-IB/Makefile (original)
+++ cfe/branches/Apple/cremebrulee-IB/Makefile Fri Apr 30 18:51:39 2010
@@ -133,6 +133,18 @@
 $(error "invalid setting for install path suffix: '$(Install_Path_Suffix)'")
 endif
 
+# Set build version and subversion, for embedding into dylibs.
+SourceVersion := $(shell echo $(RC_ProjectSourceVersion) | sed -e 's/\([0-9]*\).*/\1/')
+SourceSubversion := $(shell echo $(RC_ProjectSourceVersion) | sed -e 's/[^.]*\.\([0-9]*\)/\1/')
+ifneq ($(SourceVersion),)
+Clang_Make_Variables += LLVM_SUBMIT_VERSION=$(SourceVersion)
+ifneq ($(SourceVersion),$(RC_ProjectSourceVersion))
+Clang_Make_Variables += LLVM_SUBMIT_SUBVERSION=$(SourceSubversion)
+else
+Clang_Make_Variables += LLVM_SUBMIT_SUBVERSION=
+endif
+endif
+
 # Set configure flags.
 Configure_Flags = --enable-targets=$(LLVM_Backends) \
 		  --enable-optimized \





More information about the llvm-branch-commits mailing list