Skip to content

Commit

Permalink
(perl #133411) don't try to load Storable with -Dusecrosscompile
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycoz committed Jul 31, 2018
1 parent 91584c7 commit edf639f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
9 changes: 8 additions & 1 deletion dist/Storable/Makefile.PL
Expand Up @@ -95,11 +95,18 @@ sub depend {
# blib.pm needs arch/lib
$extra_deps = ' Storable.pm';
}
my $whichperl;
if ($Config::Config{usecrosscompile}) {
$whichperl = '$(PERLRUN)';
}
else {
$whichperl = '$(FULLPERLRUNINST)';
}
my $linktype = uc($_[0]->{LINKTYPE});
"
$limit_pm : stacksize \$(INST_$linktype)$extra_deps
\$(MKPATH) \$(INST_LIB)
\$(FULLPERLRUNINST) stacksize $options
$whichperl stacksize $options
release : dist
git tag \$(VERSION)
Expand Down
10 changes: 7 additions & 3 deletions dist/Storable/stacksize
Expand Up @@ -7,6 +7,9 @@ use Cwd;
use File::Spec;
use strict;

-d "lib" or mkdir "lib";
-d "lib/Storable" or mkdir "lib/Storable";

my $fn = "lib/Storable/Limit.pm";
my $ptrsize = $Config{ptrsize};
my ($bad1, $bad2) = (65001, 25000);
Expand All @@ -29,6 +32,10 @@ sub is_miniperl {
}

if (is_miniperl()) {
if ($Config{usecrosscompile}) {
write_limits(500, 265);
exit;
}
die "Should not run during miniperl\n";
}
my $prefix = "";
Expand Down Expand Up @@ -68,9 +75,6 @@ if ($ENV{PERL_CORE}) {
}
}

-d "lib" or mkdir "lib";
-d "lib/Storable" or mkdir "lib/Storable";

if ($^O eq "MSWin32") {
require Win32;
my ($str, $major, $minor) = Win32::GetOSVersion();
Expand Down

0 comments on commit edf639f

Please sign in to comment.