From: Karen Etheridge Date: Sun, 12 Oct 2014 19:18:36 +0000 (-0700) Subject: oops, "not" not compatible with && X-Git-Tag: v1.002005~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ba17093faecffef7c0434cd9c50fe9afa7afbb39;p=p5sagit%2FJSON-MaybeXS.git oops, "not" not compatible with && --- diff --git a/Changes b/Changes index 9e84bc6..37f06fa 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,7 @@ Revision history for JSON-MaybeXS + - fix "can I haz XS?" logic precedence in Makefile.PL + 1.002004 - 2014-10-11 - support use of PUREPERL_ONLY in Makefile.PL to avoid adding an XS dependency diff --git a/Makefile.PL b/Makefile.PL index 8b45eb5..ac6015f 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -72,7 +72,8 @@ for (qw(configure build test runtime)) { # (we also always recommend Cpanel::JSON::XS, just to make sure.) $WriteMakefileArgs{PREREQ_PM}{'Cpanel::JSON::XS'} = '2.3310' if not parse_args()->{PUREPERL_ONLY} - && not eval { require JSON::XS; 1; } && can_xs(); + and not eval { require JSON::XS; 1; } + and can_xs(); $WriteMakefileArgs{MIN_PERL_VERSION} = delete $WriteMakefileArgs{PREREQ_PM}{perl} || 0;