X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=9002eabadb669166e14bb87e3bef8e199e038524;hb=HEAD;hp=61bb17bcf1d153007e2e1a59046ce839d9b70348;hpb=51df8993fa6f88d48e99ac5f899e5e9a0d83aac6;p=p5sagit%2Fstrictures.git diff --git a/Makefile.PL b/Makefile.PL index 61bb17b..9002eab 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -4,9 +4,9 @@ use 5.006; 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, @@ -71,7 +71,7 @@ my %META = ( my %MM_ARGS = ( PREREQ_PM => { - ("$]" >= 5.008004 && $have_compiler ? %extra_prereqs : () ) + ("$]" >= 5.008004 && $should_xs ? %extra_prereqs : () ) }, );