Skip to content
Browse files

Use absolute path when spawning $*EXECUTABLE

perl6 might have been invoked as e.g. 'install/bin/perl6', which is what $*EXECUTABLE would stringify to. But if the cwd gets changed at run time then the command for precompiling would fail.
  • Loading branch information...
ugexe committed Dec 17, 2018
1 parent 7f3f77d commit e2e5cc53c7dbc23c1713e21258b7056ffdcea4ff
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/CompUnit/PrecompilationRepository.pm6
@@ -249,7 +249,7 @@ class CompUnit::PrecompilationRepository::Default does CompUnit::PrecompilationR

$RMD("Precompiling $path into $bc ($lle $profile $optimize)") if $RMD;
my $perl6 = $*EXECUTABLE
my $perl6 = $*EXECUTABLE.absolute
.subst('perl6-debug', 'perl6') # debugger would try to precompile it's UI
.subst('perl6-gdb', 'perl6')
.subst('perl6-jdb-server', 'perl6-j') ;

0 comments on commit e2e5cc5

Please sign in to comment.
You can’t perform that action at this time.