Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixes for CURLI until Final Solution™ is inflicted upon us
  • Loading branch information
tony-o committed Sep 28, 2015
1 parent cd8ce4e commit b1f75d0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/core/CompUnitRepo/Local/Installation.pm
Expand Up @@ -202,11 +202,18 @@ See http://design.perl6.org/S22.html#provides for more information.\n";
unless $candi<provides>{$ln}{$type}<file> ~~ /^$path/
}
}
@candi.push: $candi;
my $loader = $candi<provides>{$name}<pm6><file>;
my $vers = Version.new($candi<provides>{$name}{$*VM.precomp-ext}<cver>);
if $*PERL<compiler>.version eqv $vers {
return CompUnit.new($loader, :has_precomp($candi<provides>{$name}{$*VM.precomp-ext}<file>));
} else {
warn "Precomp for $name not available for {$*VM.name} version {$*PERL<compiler>.version}";
}
return CompUnit.new($loader);
}
}
}
@candi
+@candi ?? @candi[0] !! ();
}

method short-id() { 'inst' }
Expand Down

0 comments on commit b1f75d0

Please sign in to comment.