Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Build stage2 with the --stable-sc option
also extend --stable-sc to accept an identifier which is to be part of the SC hash

Can only make stage 1 stable after a bootstrap, I fear
  • Loading branch information
moritz committed Oct 8, 2015
1 parent a488d59 commit a19dab8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/NQP/Compiler.nqp
Expand Up @@ -24,7 +24,7 @@ my @clo := $nqpcomp.commandline_options();
@clo.push('setting-path=s');
@clo.push('module-path=s');
@clo.push('no-regex-lib');
@clo.push('stable-sc');
@clo.push('stable-sc=s');
@clo.push('optimize=s');
#?if parrot
@clo.push('vmlibs=s');
Expand Down
2 changes: 1 addition & 1 deletion src/NQP/Grammar.nqp
Expand Up @@ -19,7 +19,7 @@ grammar NQP::Grammar is HLL::Grammar {
# with this compilation unit.
my $file := nqp::getlexdyn('$?FILES');
my $source_id := nqp::sha1(self.target()) ~
(%*COMPILING<%?OPTIONS><stable-sc> ?? '' !! '-' ~ ~nqp::time_n());
(%*COMPILING<%?OPTIONS><stable-sc> || '-' ~ ~nqp::time_n());
my $*W := nqp::isnull($file) ??
NQP::World.new(:handle($source_id)) !!
NQP::World.new(:handle($source_id), :description($file));
Expand Down
2 changes: 1 addition & 1 deletion tools/build/Makefile-Moar.in
Expand Up @@ -7,7 +7,7 @@ M_STAGE1 = gen/moar/stage1
M_STAGE2 = gen/moar/stage2

M_STAGE0_NQP = $(MOAR) --libpath=$(M_STAGE0) $(M_STAGE0)/nqp.moarvm --bootstrap
M_STAGE1_NQP = $(MOAR) --libpath=$(M_STAGE1) $(M_STAGE1)/nqp.moarvm --bootstrap
M_STAGE1_NQP = $(MOAR) --libpath=$(M_STAGE1) $(M_STAGE1)/nqp.moarvm --bootstrap --stable-sc=s1

NQP_MO_MOAR = nqpmo.moarvm

Expand Down

0 comments on commit a19dab8

Please sign in to comment.