Skip to content
Permalink
Browse files

Remove Compiler::build-date

The compiler's build-date is of dubious value at best. Providing it completely
kills reproducibility of the build.
  • Loading branch information...
niner committed Apr 26, 2019
1 parent cafe628 commit 019ccf058d51c515b076eecea33e629901f3c157
Showing with 0 additions and 9 deletions.
  1. +0 −8 src/core/Compiler.pm6
  2. +0 −1 src/vm/js/load-compiler.nqp
@@ -1,7 +1,6 @@
class Compiler does Systemic {
has Str $.id;
has Str $.release;
has Str $!build-date;
has Str $.codename;
my constant $id = nqp::p6box_s(nqp::sha1(
$*W.handle.Str
@@ -13,7 +12,6 @@ class Compiler does Systemic {
:$!auth = 'The Perl Foundation',
:$version,
:$release,
:$build-date,
:$codename
--> Nil
) {
@@ -27,16 +25,10 @@ class Compiler does Systemic {
// Version.new(nqp::atkey($compiler, 'version'));
$!release =
$release // nqp::p6box_s(nqp::atkey($compiler, 'release-number'));
$!build-date =
$build-date // nqp::p6box_s(nqp::atkey($compiler, 'build-date'));
$!codename =
$codename // nqp::p6box_s(nqp::atkey($compiler, 'codename'));
}

method build-date() {
DateTime.new($!build-date)
}

method verbose-config(:$say) {
my $compiler := nqp::getcomp("perl6");
my $backend := $compiler.backend;
@@ -21,7 +21,6 @@ sub hll-config($config) {
$config<version> := '2018.03-1433-g602ca5bd3';
$config<release-number> := '';
$config<codename> := '';
$config<build-date> := '2018-09-30T11:43:50Z';
$config<language-version> := '6.d';
$config<can-language-versions>
:= nqp::list('6.c', '6.d', '6.d.PREVIEW');

0 comments on commit 019ccf0

Please sign in to comment.
You can’t perform that action at this time.