Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make sure $*PERL.compiler.id changes on recompilation
Previously this id only changed when recompiling src/Perl6/Compiler.nqp.
This new implementation can most probably still be improved, but at least
works for now.
  • Loading branch information
niner committed Nov 15, 2015
1 parent 08c55d5 commit b5263dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/Compiler.pm
Expand Up @@ -3,6 +3,7 @@ class Compiler does Systemic {
has Str $.release;
has Str $!build-date;
has Str $.codename;
BEGIN my $id = $*W.handle.Str ~ '.' ~ nqp::time_n();

submethod BUILD (
:$!name = 'rakudo',
Expand All @@ -16,7 +17,7 @@ class Compiler does Systemic {
my Mu $compiler := nqp::getcurhllsym('$COMPILER_CONFIG');
$!id = nqp::p6box_s( nqp::existskey($compiler,'id')
?? nqp::atkey($compiler,'id')
!! nqp::getcomp('perl6').compilation-id );
!! $id );
$!version = Version.new(
$version // nqp::p6box_s(nqp::atkey($compiler, 'version')) );
$!release =
Expand Down

0 comments on commit b5263dd

Please sign in to comment.