Skip to content

Commit

Permalink
Fix raku -V
Browse files Browse the repository at this point in the history
The rename of `Compiler.config()` to `Compiler.sysconfig()` failed to
rename all uses. Also the naming is a bit unfortunate, as that method does
not return the `SysConfig` object, but the build configuration. So just
give it back its old name.

Fixes #3875
  • Loading branch information
patrickbkr authored and Altai-man committed Aug 26, 2020
1 parent b86c05c commit 1a1fe7f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Perl6/Compiler.nqp
Expand Up @@ -9,7 +9,7 @@ class Perl6::Compiler is HLL::Compiler {
has $!can_language_versions; # List of valid language version
has $!rakudo-home;

method sysconfig() {
method config() {
nqp::gethllsym('default', 'SysConfig').rakudo-build-config();
}

Expand All @@ -19,7 +19,7 @@ class Perl6::Compiler is HLL::Compiler {
$IDHolder::ID
}

method implementation() { self.sysconfig<implementation> }
method implementation() { self.config<implementation> }
method language_name() { 'Raku' }
method reset_language_version() {
$!language_version := NQPMu;
Expand All @@ -36,7 +36,7 @@ class Perl6::Compiler is HLL::Compiler {
$!language_version
}
else {
$!language_version := %*COMPILING<%?OPTIONS><language_version> || self.sysconfig<language-version>
$!language_version := %*COMPILING<%?OPTIONS><language_version> || self.config<language-version>
}
}
method language_modifier() {
Expand All @@ -45,12 +45,12 @@ class Perl6::Compiler is HLL::Compiler {
method can_language_versions() {
$!can_language_versions
?? $!can_language_versions
!! ($!can_language_versions := self.sysconfig<can-language-versions>)
!! ($!can_language_versions := self.config<can-language-versions>)
}
method language_revisions() {
$!language_revisions
?? $!language_revisions
!! ($!language_revisions := self.sysconfig<language-revisions>)
!! ($!language_revisions := self.config<language-revisions>)
}

method command_eval(*@args, *%options) {
Expand Down

0 comments on commit 1a1fe7f

Please sign in to comment.