Skip to content

Commit

Permalink
Report a problem when the --backends is incompatible with the --with-nqp
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed May 22, 2017
1 parent 0cb7e5f commit c176289
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Configure.pl
Expand Up @@ -72,8 +72,12 @@
my %backends;
if (my $nqp_bin = $options{'with-nqp'}) {
die "Could not find $nqp_bin" unless -e $nqp_bin;
my $passed_backends = $options{backends};
$options{backends} = qx{$nqp_bin -e 'print(nqp::getcomp("nqp").backend.name)'}
or die "Could not get backend information from $nqp_bin";
if (defined $options{backends} && $passed_backends ne $options{backends}) {
die "Passed value to --backends ($passed_backends) is overwritten by the one infered by --with-nqp ($options{backends}";

This comment has been minimized.

Copy link
@MasterDuke17

MasterDuke17 May 22, 2017

Contributor

Whoops, looks like you're missing a closing paren in the die message.

}
}
if (defined $options{backends}) {
$options{backends} = join ",", @known_backends
Expand Down

0 comments on commit c176289

Please sign in to comment.