Skip to content

Commit

Permalink
Makefile.PL: allow 5.16 and git master, forbid 5.18 not on git master
Browse files Browse the repository at this point in the history
  • Loading branch information
Reini Urban committed Feb 27, 2013
1 parent a07eafb commit a18841f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,15 @@ sub write_b_c_flags {
chmod 0644, "lib/B/C/Flags.pm";
}

# XXX Check for 5.16.0 B-1.34 and offer to patch it?
# XXX Check for 5.16.0 B-1.34 and offer to patch it? rather use `perlall --patches=Compiler`
# Or not needed as we do not want to support utf8 and \0 in stashes there

if ($] > 5.017003) {
unless (-d '.git' and `git symbolic-ref -q HEAD` eq "refs/heads/master\n") {
die "Perl 5.18 PADLIST changes are currently not supported. You can try git master.\n";
}
}

WriteMakefile(
NAME => "B::C",
VERSION_FROM => "lib/B/C.pm",
Expand Down

0 comments on commit a18841f

Please sign in to comment.