Skip to content

Commit 9ed3bc1

Browse files
committed
Add an option for stable SC handles.
We can't do these in general thanks to the bootstrap, but we need it in order to handle cross-compiling.
1 parent 4bfcd13 commit 9ed3bc1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/NQP/Compiler.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ my @clo := $nqpcomp.commandline_options();
1818
@clo.push('no-regex-lib');
1919
@clo.push('old-regex-lib');
2020
@clo.push('dynext=s');
21+
@clo.push('stable-sc');
2122

2223
sub MAIN(@ARGS) {
2324
# Enter the compiler.

src/NQP/Grammar.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ grammar NQP::Grammar is HLL::Grammar {
1919
# with this compilation unit.
2020
my $file := pir::find_caller_lex__Ps('$?FILES');
2121
my $source_id := nqp::sha1(self.target()) ~
22-
'-' ~ ~nqp::time_n();
22+
(%*COMPILING<%?OPTIONS><stable-sc> ?? '' !! '-' ~ ~nqp::time_n());
2323
my $*W := nqp::isnull($file) ??
2424
NQP::World.new(:handle($source_id)) !!
2525
NQP::World.new(:handle($source_id), :description($file));

0 commit comments

Comments
 (0)