[cfe-commits] r67365 - /cfe/trunk/lib/Driver/Makefile

Chris Lattner sabre at nondot.org
Thu Mar 19 22:23:56 PDT 2009


Author: lattner
Date: Fri Mar 20 00:23:53 2009
New Revision: 67365

URL: http://llvm.org/viewvc/llvm-project?rev=67365&view=rev
Log:
strictly evaluate SVN_REVISION so that svnversion is run once instead of 4 times.

Modified:
    cfe/trunk/lib/Driver/Makefile

Modified: cfe/trunk/lib/Driver/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Makefile?rev=67365&r1=67364&r2=67365&view=diff

==============================================================================
--- cfe/trunk/lib/Driver/Makefile (original)
+++ cfe/trunk/lib/Driver/Makefile Fri Mar 20 00:23:53 2009
@@ -12,12 +12,14 @@
 BUILD_ARCHIVE = 1
 CXXFLAGS = -fno-rtti
 
-SVN_REVISION = $(shell cd $(PROJ_SRC_DIR)/../.. && svnversion)
-
-CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include -DTARGET_TRIPLE='"$(TARGET_TRIPLE)"' -DSVN_REVISION='"$(SVN_REVISION)"'
 
 include $(LEVEL)/Makefile.common
 
+SVN_REVISION := $(shell cd $(PROJ_SRC_DIR)/../.. && svnversion)
+
+CPP.Defines += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include \
+         -DTARGET_TRIPLE='"$(TARGET_TRIPLE)"' -DSVN_REVISION='"$(SVN_REVISION)"'
+
 $(ObjDir)/.ver-svn .ver:
 	@if [ '$(SVN_REVISION)' != '$(shell cat $(ObjDir)/.ver-svn 2>/dev/null)' ]; then\
 		echo '$(SVN_REVISION)' > $(ObjDir)/.ver-svn;			\





More information about the cfe-commits mailing list