/gist:471a878e3b85be9d2446 Secret
Created
April 6, 2015 23:26
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Stage parse : Error while compiling, type X::Syntax::Malformed | |
| what: parameter | |
| line: 26319 | |
| modules: () | |
| pre: $out = self.precomp-path, | |
| post: -> | |
| highexpect: (formal parameter) | |
| is-compile-time: 1 | |
| filename: src/gen/m-CORE.setting | |
| at line 26320, near "->\n :" |
m-CORE.setting
method precomp(CompUnit:D:
$out = self.precomp-path, ->
:$INC = @*INC,
:$force,
--> Bool) {
die "Cannot pre-compile over an existing file: $out"
if !$force and $out.IO.e;
my Mu $opts := nqp::atkey(%*COMPILING, '%?OPTIONS');
my $lle = !nqp::isnull($opts) && !nqp::isnull(nqp::atkey($opts, 'll-exception'))
?? ' --ll-exception'
!! '';
%*ENV<RAKUDO_PRECOMP_WITH> = CREATE-INCLUDE-SPEC(@$INC);
my Bool $result = ?shell(
"$*EXECUTABLE$lle --target={$*VM.precomp-target} --output=$out $!path"
);
%*ENV<RAKUDO_PRECOMP_WITH>:delete;
$!has-precomp = $result if $out eq self.precomp-path;
$result;
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
source (before build)