@@ -40,15 +40,15 @@ my $batch = floor 1.3 * do with run 'lscpu', :out, :!err {
4040} || 8 ;
4141
4242
43- method toast-all ($ commit = ' master' ) {
43+ method toast-all ($ commit = ' master' , Bool : $ no-build ) {
4444 my @ modules = jget(ECO_API)<dists >. map (*. <name >). sort
4545 . grep : *. match : BANNED_MODULES. none ;
4646 say " About to toast { + @ modules } modules" ;
4747 self . toast: @ modules , $ commit ;
4848}
49- method toast (@ modules , $ commit = ' master' ) {
49+ method toast (@ modules , $ commit = ' master' , Bool : $ no-build ) {
5050 temp % * ENV ;
51- % * ENV <PATH > = self . build-rakudo: $ commit ;
51+ % * ENV <PATH > = self . build-rakudo: $ commit , : $ no-build ;
5252 % * ENV <ALL_TESTING NETWORK_TESTING ONLINE_TESTING > = 1 , 1 , 1 ;
5353 say " Toasting with path % * ENV <PATH>" ;
5454 my $ ver = shell (: out, :! err,
@@ -83,23 +83,28 @@ method toast (@modules, $commit = 'master') {
8383 toast-it toast-it @ modules ;
8484}
8585
86- method build-rakudo (Str : D $ commit = ' master' ) {
87- say " Starting to build rakudo $ commit" ;
86+ method build-rakudo (Str : D $ commit = ' master' , Bool : $ no-build ) {
87+ say $ no-build ?? " Trying to use exisitng build for rakudo $ commit"
88+ !! " Starting to build rakudo $ commit" ;
8889 indir RAKUDO_BUILD_DIR, {
8990 my $ com-dir = $ commit . subst : : g, /\W /, ' _' ;
90- $ = run «rm -fr " $ com-dir" »;
91- run «git clone " { RAKUDO_REPO} " " $ com-dir" »;
91+ unless $ no-build {
92+ $ = run «rm -fr " $ com-dir" »;
93+ run «git clone " { RAKUDO_REPO} " " $ com-dir" »;
94+ }
9295 indir $ * CWD . add($ com-dir ), {
93- run «git checkout " $ commit" »;
94- say " Checkout done" ;
95- run «perl Configure. pl -- gen-moar -- gen-nqp -- backends= moar»;
96- run «make »;
97- run «make install»;
98- run «git clone " { ZEF_REPO} " »;
96+ unless $ no-build {
97+ run «git checkout " $ commit" »;
98+ say " Checkout done" ;
99+ run «perl Configure. pl -- gen-moar -- gen-nqp -- backends= moar»;
100+ run «make »;
101+ run «make install»;
102+ run «git clone " { ZEF_REPO} " »;
103+ }
99104
100105 temp % * ENV ;
101106 % * ENV <PATH > = $ * CWD . add(' install/bin' ). absolute ~ " :% * ENV <PATH>" ;
102- indir $ * CWD . add(' zef' ), { run «perl6 -Ilib bin/ zef install . » }
107+ $ no-build || indir $ * CWD . add(' zef' ), { run «perl6 -Ilib bin/ zef install . » }
103108 % * ENV <PATH > = $ * CWD . add(' install/share/perl6/site/bin' )
104109 . absolute ~ " :% * ENV <PATH>" ;
105110
0 commit comments