summaryrefslogtreecommitdiff
path: root/patchlevel.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-01-23 16:41:31 +0000
committerNicholas Clark <nick@ccl4.org>2009-01-23 17:03:45 +0000
commit486cd780047ff22471c5cbe417911a042ae23962 (patch)
tree5389041539c3d18c988fdc6b88105f51f328620a /patchlevel.h
parentbf799c6455f928b1043103098647499d1b2e96ff (diff)
downloadperl-486cd780047ff22471c5cbe417911a042ae23962.tar.gz
Amend patchlevel.h so that git_version.h is only #include""ed for perl.
miniperl builds with canned data equivalent to stock_git_version.h. git_version.h becomes an explicit dependency for perl.o, make_patchnum.pl is explicitly run to create it, and no sub-makes are spawned with their inherent race conditions and consequent strange build failures.
Diffstat (limited to 'patchlevel.h')
-rw-r--r--patchlevel.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/patchlevel.h b/patchlevel.h
index 68c4d3cb37..96066f542a 100644
--- a/patchlevel.h
+++ b/patchlevel.h
@@ -116,7 +116,13 @@ hunk.
*/
#if !defined(PERL_PATCHLEVEL_H_IMPLICIT) && !defined(LOCAL_PATCH_COUNT)
+# if defined(PERL_IS_MINIPERL)
+# define PERL_PATCHNUM "UNKNOWN-miniperl"
+# define PERL_GIT_UNCOMMITTED_CHANGES ,"UNKNOWN"
+# define PERL_GIT_UNPUSHED_COMMITS /*leave-this-comment*/
+# else
#include "git_version.h"
+# endif
static const char * const local_patches[] = {
NULL
PERL_GIT_UNPUSHED_COMMITS /* do not remove this line */