Skip to content

Commit b28db89

Browse files
authored
Merge pull request #666 from patrickbkr/fix-static-rakudo-home
Move build logic to separate method so it can be called in subclasses
2 parents ea2e8f0 + 79c94bf commit b28db89

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/HLL/Compiler.nqp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,4 +816,3 @@ class HLL::Compiler does HLL::Backend::Default {
816816
my $compiler := HLL::Compiler.new();
817817
$compiler.language($compiler.backend.name);
818818
nqp::bindcomp('default', $compiler);
819-
nqp::bindhllsym('default', 'SysConfig', HLL::SysConfig.new());

src/HLL/SysConfig.nqp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ class HLL::SysConfig {
44
has $!path-sep;
55

66
method BUILD() {
7+
self.build-hll-sysconfig()
8+
}
9+
10+
method build-hll-sysconfig() {
711
%!build-config := nqp::hash();
812
hll-config(%!build-config);
913

src/NQP/Compiler.nqp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ class NQP::Compiler is HLL::Compiler {
88
}
99
}
1010

11+
nqp::bindhllsym('default', 'SysConfig', HLL::SysConfig.new());
12+
1113
# Create and configure compiler object.
1214
my $nqpcomp := NQP::Compiler.new();
1315
$nqpcomp.language('nqp');

0 commit comments

Comments
 (0)