Skip to content

Commit

Permalink
Merge pull request #12 from skaji/do-not-add-macosx_version_min
Browse files Browse the repository at this point in the history
do not add macosx_version_min
  • Loading branch information
skaji committed Feb 20, 2022
2 parents 0f0fa08 + e70c992 commit 61f31ab
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions build/relocatable-perl-build
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,21 @@ sub perl_build {
say "---> patching by $devel " . $devel->VERSION;
$devel->patch_source($perl_version, ".");
if ($^O eq "darwin") {
{
say "---> patching, do not add macosx_version_min";
my $file = "hints/darwin.sh";
open my $in, "<", $file or die;
open my $out, ">", "$file.tmp" or die;
while (my $line = <$in>) {
print {$out} $line;
if ($line =~ m{^ \s* add_macosx_version_min \s* \( }x) {
print {$out} " return\n";
}
}
close $in;
close $out;
rename "$file.tmp", $file or die;
}
if (version->parse($perl_version) <= v5.34.0) {
my $klass = "Devel::PatchPerl::Plugin::FixCompoundTokenSplitByMacro";
say "---> patching by $klass";
Expand Down

0 comments on commit 61f31ab

Please sign in to comment.