Skip to content
Permalink
Browse files

Don't try parse version when no binary found.

  • Loading branch information...
vrurg committed Jun 10, 2019
1 parent f15f568 commit f935bd20ad9a54cbd5ce2912061a1889bc67c5fb
Showing with 4 additions and 2 deletions.
  1. +4 −2 tools/lib/NQP/Config/Rakudo.pm
@@ -582,10 +582,10 @@ sub gen_nqp {
my %c = read_config($bin);
my $nqp_have = $c{'nqp::version'} || '';
$self->backend_config( $b, \%c ) if %c;
my $nqp_ver_ok = 0 <= cmp_rev( $nqp_have, $nqp_want );
my $nqp_ver_ok = $nqp_have ? (0 <= cmp_rev( $nqp_have, $nqp_want )) : 0;
my $nqp_ok = $nqp_have && $nqp_ver_ok;

unless ( $nqp_ver_ok || $options->{'ignore-errors'} ) {
unless ( !$nqp_have || $nqp_ver_ok || $options->{'ignore-errors'} ) {
$self->note( "WARNING",
"$bin version $nqp_have is outdated, $nqp_want expected.\n" );
}
@@ -601,6 +601,8 @@ sub gen_nqp {
}
}

say "need?";

return unless %need;

return unless defined($gen_nqp) || defined($gen_moar);

0 comments on commit f935bd2

Please sign in to comment.
You can’t perform that action at this time.