From: Graham Knop Date: Sun, 10 Mar 2024 14:09:43 +0000 (+0100) Subject: allow specifying false value for PUREPERL_ONLY X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=20a395dea8669a65c20f0825f32e6292442d9fb0;p=p5sagit%2Fstrictures.git allow specifying false value for PUREPERL_ONLY --- 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 : () ) }, );