Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix perl6-debug running into a precompilation endless loop
perl6-debug tries to load Debugger::UI::CommandLine which will be precompiled
on first use with $*EXECUTABLE which is perl6-debug which tries to load ...
Fixed by detecting that we're using the perl6-debug executable and using
perl6 instead.
  • Loading branch information
niner committed Jan 11, 2016
1 parent 4e78adc commit 00431fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/CompUnit/PrecompilationRepository.pm
Expand Up @@ -111,8 +111,9 @@ class CompUnit::PrecompilationRepository::Default does CompUnit::PrecompilationR
%ENV<RAKUDO_PRECOMP_DIST> = $*RESOURCES ?? $*RESOURCES.Str !! '{}';

$RMD("Precompiling $path into $io") if $RMD;
my $perl6 = $*EXECUTABLE.subst('perl6-debug', 'perl6'); # debugger would try to precompile it's UI
my $proc = run(
$*EXECUTABLE,
$perl6,
$lle,
"--target=" ~ Rakudo::Internals.PRECOMP-TARGET,
"--output=$io",
Expand Down

0 comments on commit 00431fb

Please sign in to comment.