Skip to content

Commit

Permalink
Add failsafe for finding the p5helper
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed May 5, 2015
1 parent 093878c commit 438d023
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Inline/Perl5.pm6
Expand Up @@ -28,10 +28,14 @@ sub native(Sub $sub) {
# with a different filename (a number with no extension) that NativeCall doesn't
# know how to load. We do this copy to fix the filename.
$path = $*SPEC.tmpdir ~ '/' ~ $*PID ~ '-' ~ $so;

$tmp.IO.copy($path);
}
}
}
unless $path { # TEMPORARY !!!!
$path = $?FILE.substr(0,*-9) ~ $so;
}
unless $path {
die "unable to find Inline/$so IN \@*INC";
}
Expand Down

0 comments on commit 438d023

Please sign in to comment.