Skip to content

Commit

Permalink
add List::Util::XS as prereq if compiler available
Browse files Browse the repository at this point in the history
  • Loading branch information
haarg committed Aug 19, 2016
1 parent 355f759 commit a97e6ad
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
*.c
.*.swp

/inc/
/List-Util-*/
/List-Util-*.tar.gz
10 changes: 9 additions & 1 deletion Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,15 @@ WriteMakefile(
? ()
: (
INSTALLDIRS => ($] < 5.011 ? q[perl] : q[site]),
PREREQ_PM => {'Test::More' => 0,},
PREREQ_PM => {
(do {
require lib;
lib->import('inc');
require ExtUtils::HasCompiler;
ExtUtils::HasCompiler::can_compile_loadable_object(quiet => 1);
} ? ("List::Util::XS" => "1.46_01") : ()),
'Test::More' => 0,
},
(eval { ExtUtils::MakeMaker->VERSION(6.31) } ? (LICENSE => 'perl') : ()),
(eval { ExtUtils::MakeMaker->VERSION(6.48) } ? (MIN_PERL_VERSION => '5.006') : ()),
( eval { ExtUtils::MakeMaker->VERSION(6.46) } ? (
Expand Down

0 comments on commit a97e6ad

Please sign in to comment.