Skip to content

Commit 3ea14a9

Browse files
committed
Fix --target=parse in rakudo
Remove unless clause that doesn't load the actions if --target=parse. Was likely an optimization, but working code always beats an optimization.
1 parent c6320d3 commit 3ea14a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HLL/Compiler.nqp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ class HLL::Compiler does HLL::Backend::Default {
413413
}
414414
my $grammar := self.parsegrammar;
415415
my $actions;
416-
$actions := self.parseactions unless %adverbs<target> eq 'parse';
416+
$actions := self.parseactions;
417417
$grammar.HOW.trace-on($grammar) if %adverbs<rxtrace>;
418418
my $match := $grammar.parse($s, p => 0, actions => $actions);
419419
$grammar.HOW.trace-off($grammar) if %adverbs<rxtrace>;

0 commit comments

Comments
 (0)