aboutsummaryrefslogtreecommitdiff
path: root/Configure.pl
diff options
context:
space:
mode:
authorjnthn <jnthn@jnthn.net>2014-03-15 18:47:53 +0100
committerjnthn <jnthn@jnthn.net>2014-03-15 18:47:53 +0100
commitdb73a21ffa2c426e2891297bb6ef53212180569a (patch)
treed55134358ecf7e56ab4bea8a9a28e1d07f32c955 /Configure.pl
parentee1d52e8c93a2b1a039a8bc19e2c53fee3c0852e (diff)
Try to get --gen-moar working.
Diffstat (limited to 'Configure.pl')
-rw-r--r--Configure.pl14
1 files changed, 9 insertions, 5 deletions
diff --git a/Configure.pl b/Configure.pl
index 4840abf..fe665c8 100644
--- a/Configure.pl
+++ b/Configure.pl
@@ -32,7 +32,7 @@ MAIN: {
my %options;
GetOptions(\%options, 'help!', 'prefix=s',
- 'backends=s', 'no-clean!',
+ 'backends=s', 'no-clean!',
'gen-nqp:s', 'gen-moar:s',
'gen-parrot:s', 'parrot-option=s@',
'parrot-make-option=s@',
@@ -88,8 +88,7 @@ MAIN: {
}
else {
for my $l (sort keys %letter_to_backend) {
- # TODO: needs .exe/.bat magic on windows?
- if (-x "$prefix/bin/nqp-$l") {
+ if (-x "$prefix/bin/nqp-$l" || -x "$prefix/bin/nqp-$l.bat" || -x "$prefix/bin/nqp-$l.exe") {
my $b = $letter_to_backend{$l};
print "Found $prefix/bin/nqp-$l (backend $b)\n";
$backends{$b} = 1;
@@ -97,12 +96,17 @@ MAIN: {
}
}
unless (%backends) {
- $backends{parrot} = 1;
+ if (defined $options{'gen-moar'}) {
+ $backends{moar} = 1;
+ }
+ else {
+ $backends{parrot} = 1;
+ }
}
}
unless ($backends{parrot}) {
- warn "JVM-only builds are currently not supported, and might go wrong.\n";
+ warn "JVM/Moar-only builds are currently not supported, and might go wrong.\n";
}
# Save options in config.status