Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Perlito5 - perl6-eval.p6: fix for niecza
  • Loading branch information
fglock committed May 26, 2012
1 parent ae3f389 commit ec8949c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions perl6-eval.p6
@@ -1,6 +1,7 @@
use v6;

multi eval($str, :$lang! where 'perl5') {
$lang; # workaround for niecza: '$lang is declared but not used'
my $inp_file = "tmp.p5";
my $out_file = "tmp.p6";
my $fh = open($inp_file, :w);
Expand All @@ -23,6 +24,14 @@ eval($p5_str, :lang<perl5>);
=begin comments
Note: to run niecza in osx you need:
$ export LD_LIBRARY_PATH=/opt/local/lib
Missing LD_LIBRARY_PATH gives the error:
"Unhandled exception: System.TypeInitializationException"
Note: fixed in rakudo commit e756635b9e:
If I define multi eval($str, :$lang! where 'perl5')
Expand Down

0 comments on commit ec8949c

Please sign in to comment.