[llvm-commits] [llvm-gcc-4.2] r53736 - in /llvm-gcc-4.2/trunk/gcc: Makefile.in version.c
Devang Patel
dpatel at apple.com
Thu Jul 17 13:03:32 PDT 2008
Author: dpatel
Date: Thu Jul 17 15:03:32 2008
New Revision: 53736
URL: http://llvm.org/viewvc/llvm-project?rev=53736&view=rev
Log:
Print svn revision number in version string.
Modified:
llvm-gcc-4.2/trunk/gcc/Makefile.in
llvm-gcc-4.2/trunk/gcc/version.c
Modified: llvm-gcc-4.2/trunk/gcc/Makefile.in
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/Makefile.in?rev=53736&r1=53735&r2=53736&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/Makefile.in (original)
+++ llvm-gcc-4.2/trunk/gcc/Makefile.in Thu Jul 17 15:03:32 2008
@@ -802,6 +802,10 @@
DEVPHASE_s := "\"$(if $(DEVPHASE_c), ($(DEVPHASE_c)))\""
DATESTAMP_s := "\"$(if $(DEVPHASE_c), $(DATESTAMP_c))\""
+# LLVM LOCAL begin svn version
+SVNVER_c := $(shell svnversion $(abs_srcdir) )
+SVNVER_s := "\"$(if $(SVNVER_c), $(SVNVER_c))\""
+# LLVM LOCAL end svn version
# Shorthand variables for dependency lists.
TARGET_H = $(TM_H) target.h insn-modes.h
MACHMODE_H = machmode.h mode-classes.def insn-modes.h
@@ -2048,10 +2052,14 @@
dumpvers: dumpvers.c
-version.o: version.c version.h $(DATESTAMP) $(BASEVER) $(DEVPHASE)
+# LLVM LOCAL begin svn version
+.PHONY: version.o
+version.o:
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) \
-DBASEVER=$(BASEVER_s) -DDATESTAMP=$(DATESTAMP_s) \
+ -DSVNVER=$(SVNVER_s) \
-DDEVPHASE=$(DEVPHASE_s) -c $(srcdir)/version.c $(OUTPUT_OPTION)
+# LLVM LOCAL endn svn version
gtype-desc.o: gtype-desc.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
$(VARRAY_H) $(HASHTAB_H) $(SPLAY_TREE_H) bitmap.h $(TREE_H) $(RTL_H) \
Modified: llvm-gcc-4.2/trunk/gcc/version.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/version.c?rev=53736&r1=53735&r2=53736&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/version.c (original)
+++ llvm-gcc-4.2/trunk/gcc/version.c Thu Jul 17 15:03:32 2008
@@ -33,4 +33,4 @@
/* The complete version string, assembled from several pieces.
BASEVER, DATESTAMP, and DEVPHASE are defined by the Makefile. */
-const char version_string[] = BASEVER DATESTAMP DEVPHASE VERSUFFIX;
+const char version_string[] = BASEVER DATESTAMP DEVPHASE VERSUFFIX SVNVER;
More information about the llvm-commits
mailing list