Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Check minimum Perl 5 version for less confusing errors
  • Loading branch information
niner committed Feb 14, 2015
1 parent a3fc639 commit fa2e492
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.in
Expand Up @@ -3,6 +3,6 @@ all: %DESTDIR%/Inline/p5helper%SO%
clean:
rm %DESTDIR%/Inline/p5helper%SO%
%DESTDIR%/Inline/p5helper%SO%: p5helper.c
gcc p5helper.c `perl -MExtUtils::Embed -e ccopts -e ldopts` -shared -o %DESTDIR%/Inline/p5helper%SO% -fPIC -g
gcc -Wall p5helper.c `perl -MExtUtils::Embed -e ccopts -e ldopts` -shared -o %DESTDIR%/Inline/p5helper%SO% -fPIC -g
test: all
prove -e 'perl6 -Ilib' t
3 changes: 3 additions & 0 deletions configure.pl6
Expand Up @@ -2,6 +2,9 @@
use v6;
use LibraryMake;

shell('perl -e "use v5.18;"')
or die "Perl 5 version requirement not met";

my %vars = get-vars('.');
process-makefile('.', %vars);
make('.', 'lib');
Expand Down

0 comments on commit fa2e492

Please sign in to comment.