Skip to content

Commit

Permalink
Fix "dependency not precomp'd" error.
Browse files Browse the repository at this point in the history
Seems it didn't trigger for some reason the previous way we had it
checked. This gets it more reliable.
  • Loading branch information
jnthn committed Jun 29, 2015
1 parent 150df80 commit 7378ad7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Perl6/ModuleLoader.nqp
Expand Up @@ -170,9 +170,7 @@ class Perl6::ModuleLoader does Perl6::ModuleLoaderVMConfig {
else {
# If we're doing module pre-compilation, we should only
# allow the modules we load to be pre-compiled also.
my $precomp := 0;
try $precomp := $*W.is_precompilation_mode();
if $precomp {
if $*W && $*W.is_precompilation_mode() {
nqp::die(
"When pre-compiling a module, its dependencies must be pre-compiled first.\n" ~
"Please pre-compile " ~ %chosen<pm>);
Expand Down

0 comments on commit 7378ad7

Please sign in to comment.