use lib 'inc';
use ExtUtils::HasCompiler 'can_compile_loadable_object';
-my $have_compiler
- = ! parse_args()->{PUREPERL_ONLY}
- && can_compile_loadable_object(quiet => 1);
+my $want_pp = parse_args()->{PUREPERL_ONLY};
+my $should_xs
+ = defined $want_pp ? $want_pp : can_compile_loadable_object(quiet => 1);
my %extra_prereqs = (
indirect => 0,
my %MM_ARGS = (
PREREQ_PM => {
- ("$]" >= 5.008004 && $have_compiler ? %extra_prereqs : () )
+ ("$]" >= 5.008004 && $should_xs ? %extra_prereqs : () )
},
);