}
}}
-my $pureperl;
-for my $i (0..$#ARGV) {
- if ($ARGV[$i] =~ /^PUREPERL_ONLY=(.*)/) {
- $pureperl = $1;
- splice @ARGV, $i, 1;
- last;
- }
+use Text::ParseWords;
+
+sub parse_args {
+ # copied from EUMM
+ ExtUtils::MakeMaker::parse_args(
+ my $tmp = {},
+ Text::ParseWords::shellwords($ENV{PERL_MM_OPT} || ''),
+ @ARGV,
+ );
+ return $tmp->{ARGS} || {};
}
my $mymeta_works = eval { ExtUtils::MakeMaker->VERSION('6.5707'); 1 };
);
my %RUN_DEPS = (
'Sub::Exporter::Progressive' => '0.001006',
- ( (defined ${^GLOBAL_PHASE} or $pureperl or !can_xs() )
+ ( (defined ${^GLOBAL_PHASE} or parse_args()->{PUREPERL_ONLY} or !can_xs() )
? ()
: ('Devel::GlobalDestruction::XS' => 0)
),