X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=ceb956383596bb0fe2f4e1e5a94c6d30f22c21c1;hb=219ca4f946f9aa1497cea2eed309f751ea0fa7fe;hp=b6344e0c89f99028e11b5996032a76df0a8976cb;hpb=3d084a8cc8d18ccfd4e39a64ae21668674ed9c47;p=p5sagit%2FDevel-GlobalDestruction.git diff --git a/Makefile.PL b/Makefile.PL index b6344e0..ceb9563 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -19,6 +19,15 @@ BEGIN { if ( $^O eq 'cygwin' ) { } }} +my $pureperl; +for my $i (0..$#ARGV) { + if ($ARGV[$i] =~ /^PUREPERL_ONLY=(.*)/) { + $pureperl = $1; + splice @ARGV, $i, 1; + last; + } +} + my $mymeta_works = eval { ExtUtils::MakeMaker->VERSION('6.5707'); 1 }; my $mymeta = $mymeta_works || eval { ExtUtils::MakeMaker->VERSION('6.5702'); 1 }; @@ -26,7 +35,7 @@ my %META_BITS = ( ); my %RUN_DEPS = ( 'Sub::Exporter::Progressive' => '0.001006', - ( (defined ${^GLOBAL_PHASE} or !can_xs() ) + ( (defined ${^GLOBAL_PHASE} or $pureperl or !can_xs() ) ? () : ('Devel::GlobalDestruction::XS' => 0) ),