Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use $*VM.precomp-ext
  • Loading branch information
lizmat committed May 16, 2014
1 parent 6a81129 commit 90fdd07
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/core/CompUnitRepo.pm
Expand Up @@ -35,16 +35,10 @@ class CompUnitRepo {
my $candi = self.candidates($module_name, :auth(%opts<auth>), :ver(%opts<ver>))[0];
my %chosen;
if $candi {
%chosen<pm> := $candi<provides>{$module_name}<pm><file>;
#?if parrot
%chosen<load> := $candi<provides>{$module_name}<pir><file>;
#?endif
#?if jvm
%chosen<load> := $candi<provides>{$module_name}<jar><file>;
#?endif
#?if moar
%chosen<load> := $candi<provides>{$module_name}<moarvm><file>;
#?endif
%chosen<pm> :=
$candi<provides>{$module_name}<pm><file>;
%chosen<load> :=
$candi<provides>{$module_name}{$*VM.precomp-ext}<file>;
%chosen<key> := %chosen<pm> // %chosen<load>;
}
$p6ml.load_module($module_name, %opts, |@GLOBALish, :$line, :$file, :%chosen);
Expand Down

0 comments on commit 90fdd07

Please sign in to comment.