[cfe-commits] r94081 - /cfe/trunk/lib/Basic/Makefile

Daniel Dunbar daniel at zuster.org
Thu Jan 21 08:56:48 PST 2010


Author: ddunbar
Date: Thu Jan 21 10:56:47 2010
New Revision: 94081

URL: http://llvm.org/viewvc/llvm-project?rev=94081&view=rev
Log:
Update to use llvm/utils/GetSourceVersion to detect version number, instead of
assuming SVN. This should be fixed to not necessarily be an integer.

Modified:
    cfe/trunk/lib/Basic/Makefile

Modified: cfe/trunk/lib/Basic/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Makefile?rev=94081&r1=94080&r2=94081&view=diff

==============================================================================
--- cfe/trunk/lib/Basic/Makefile (original)
+++ cfe/trunk/lib/Basic/Makefile Thu Jan 21 10:56:47 2010
@@ -20,7 +20,7 @@
 
 include $(LEVEL)/Makefile.common
 
-SVN_REVISION := $(shell cd $(PROJ_SRC_DIR)/../.. && svnversion)
+SVN_REVISION := $(shell $(LLVM_SRC_ROOT)/utils/GetSourceVersion $(PROJ_SRC_DIR)/../..)
 
 CPP.Defines += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include \
          -DSVN_REVISION='"$(SVN_REVISION)"'





More information about the cfe-commits mailing list