From ae928714df9f3cbd1b858e467fb7de4a34c09eca Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 21 Jan 2010 16:56:47 +0000 Subject: [PATCH] Update to use llvm/utils/GetSourceVersion to detect version number, instead of assuming SVN. This should be fixed to not necessarily be an integer. llvm-svn: 94081 --- clang/lib/Basic/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Basic/Makefile b/clang/lib/Basic/Makefile index 5bd4314f45cd..dc00450bdfa2 100644 --- a/clang/lib/Basic/Makefile +++ b/clang/lib/Basic/Makefile @@ -20,7 +20,7 @@ CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include 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)"'