Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't load -M specs for each EVAL
  • Loading branch information
lizmat committed May 19, 2015
1 parent 27e531b commit f17b413
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Perl6/World.nqp
Expand Up @@ -380,10 +380,12 @@ class Perl6::World is HLL::World {
}
}

my $M := %*COMPILING<%?OPTIONS><M>;
if nqp::defined($M) {
for nqp::islist($M) ?? $M !! [$M] -> $longname {
self.do_pragma_or_load_module($/,1,$longname);
unless $in_eval {
my $M := %*COMPILING<%?OPTIONS><M>;
if nqp::defined($M) {
for nqp::islist($M) ?? $M !! [$M] -> $longname {
self.do_pragma_or_load_module($/,1,$longname);
}
}
}
}
Expand Down

0 comments on commit f17b413

Please sign in to comment.