Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Avoid stupid catfile behavior, fixing Win config.
  • Loading branch information
jnthn committed Nov 10, 2015
1 parent d380395 commit 517c8f8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/lib/NQP/Configure.pm
Expand Up @@ -443,8 +443,10 @@ sub gen_moar {
push @opts, "--optimize";
my $startdir = cwd();
my $git_protocol = $options{'git-protocol'} || 'https';

my $moar_exe = $options{'with-moar'} || File::Spec->catfile( $sdkroot, $prefix, 'bin', "moar$exe" );
my $moar_exe = $options{'with-moar'} || (
$sdkroot
? File::Spec->catfile( $sdkroot, $prefix, 'bin', "moar$exe" )
: File::Spec->catfile( $prefix, 'bin', "moar$exe" ));
my $moar_have = qx{ $moar_exe --version };
if ($moar_have) {
$moar_have = $moar_have =~ /version (\S+)/ ? $1 : undef;
Expand Down

0 comments on commit 517c8f8

Please sign in to comment.