diff options
author | Nicholas Clark <nick@ccl4.org> | 2009-01-23 16:41:31 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2009-01-23 17:03:45 +0000 |
commit | 486cd780047ff22471c5cbe417911a042ae23962 (patch) | |
tree | 5389041539c3d18c988fdc6b88105f51f328620a /patchlevel.h | |
parent | bf799c6455f928b1043103098647499d1b2e96ff (diff) | |
download | perl-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.h | 6 |
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 */ |