summaryrefslogtreecommitdiffstats
path: root/Modules/getbuildinfo.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-01-18 09:13:51 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-01-18 09:13:51 (GMT)
commitd078e40d416566d3a88bc47c2df180c85d5e339f (patch)
treed06e90b22394a87dfb47a2f0c14e6377ce6808bb /Modules/getbuildinfo.c
parentd790a7b596585a5726b8e7aa3e5c437944532bc0 (diff)
downloadcpython-d078e40d416566d3a88bc47c2df180c85d5e339f.zip
cpython-d078e40d416566d3a88bc47c2df180c85d5e339f.tar.gz
cpython-d078e40d416566d3a88bc47c2df180c85d5e339f.tar.bz2
Generate getbuildinfo.o each time the linker is invoked;
try to generate SVNVERSION information if subwcrev.exe can be found.
Diffstat (limited to 'Modules/getbuildinfo.c')
-rw-r--r--Modules/getbuildinfo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/getbuildinfo.c b/Modules/getbuildinfo.c
index 7b47aea..a017dab 100644
--- a/Modules/getbuildinfo.c
+++ b/Modules/getbuildinfo.c
@@ -20,6 +20,10 @@
#endif
#endif
+#ifdef SUBWCREV
+#define SVNVERSION "$WCRANGE$$WCMODS?M:$"
+#endif
+
const char *
Py_GetBuildInfo(void)
{