aboutsummaryrefslogtreecommitdiff
path: root/Configure.pl
diff options
context:
space:
mode:
authorjnthn <jnthn@jnthn.net>2014-03-16 19:45:18 +0100
committerjnthn <jnthn@jnthn.net>2014-03-16 21:50:18 +0100
commit45ea83817352fa1ef9caa86aa1b4157e6c765905 (patch)
tree1490877e3062fa19a6323537b68d2132d4f589a2 /Configure.pl
parent16df5398e60973992eb76fac04246bd942f5e137 (diff)
Work towards multi-backend build/install.
This gets closer to handling the Rakudo build/install itself on other backends, though not the module install.
Diffstat (limited to 'Configure.pl')
-rw-r--r--Configure.pl10
1 files changed, 10 insertions, 0 deletions
diff --git a/Configure.pl b/Configure.pl
index fe665c8..02972e9 100644
--- a/Configure.pl
+++ b/Configure.pl
@@ -98,13 +98,22 @@ MAIN: {
unless (%backends) {
if (defined $options{'gen-moar'}) {
$backends{moar} = 1;
+ $default_backend = 'moar';
}
else {
$backends{parrot} = 1;
+ $default_backend = 'parrot';
}
}
}
+ $config{backend_exes} = join ' ', map
+ { '$(PERL6_' . uc(substr $_, 0, 1) . '_EXE)' }
+ keys %backends;
+ $config{default_backend_exe} = '$(PERL6_' .
+ uc(substr $default_backend, 0, 1) .
+ '_EXE)';
+
unless ($backends{parrot}) {
warn "JVM/Moar-only builds are currently not supported, and might go wrong.\n";
}
@@ -123,6 +132,7 @@ MAIN: {
$config{'stagestats'} = '--stagestats' if $options{'makefile-timing'};
$config{'cpsep'} = $^O eq 'MSWin32' ? ';' : ':';
$config{'shell'} = $^O eq 'MSWin32' ? 'cmd' : 'sh';
+ $config{'bat'} = $^O eq 'MSWin32' ? '.bat' : '';
my $make = $config{'make'} = $^O eq 'MSWin32' ? 'nmake' : 'make';
my @prefixes = sort map substr($_, 0, 1), keys %backends;