From 45ea83817352fa1ef9caa86aa1b4157e6c765905 Mon Sep 17 00:00:00 2001 From: jnthn Date: Sun, 16 Mar 2014 19:45:18 +0100 Subject: Work towards multi-backend build/install. This gets closer to handling the Rakudo build/install itself on other backends, though not the module install. --- Configure.pl | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Configure.pl') 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; -- cgit v1.1