Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Set PERL6LIB to destination dir when precompiling

This allows package managers to install modules to a staging
directory with the process blowing up
  • Loading branch information...
commit 428f9a81ce939f76bbf6d973304081e3fc4106de 1 parent 5d804c4
@hoelzro hoelzro authored
Showing with 13 additions and 9 deletions.
  1. +13 −9 tools/build/module-install.pl
View
22 tools/build/module-install.pl
@@ -69,15 +69,19 @@ sub path_to_module_name {
$_;
}
-print "== Precompiling modules\n";
-chdir 'rakudo';
-foreach my $pm (@pmfiles) {
- my $out = $pm;
- $out =~ s/\.pm6?$/.pir/;
- my @cmd = ($perl6bin, '--target=pir', "--output=$out", $pm);
- print join(' ', @cmd), "\n";
- system(@cmd);
-}
+do {
+ local $ENV{'PERL6LIB'} = $perl6lib;
+
+ print "== Precompiling modules\n";
+ chdir 'rakudo';
+ foreach my $pm (@pmfiles) {
+ my $out = $pm;
+ $out =~ s/\.pm6?$/.pir/;
+ my @cmd = ($perl6bin, '--target=pir', "--output=$out", $pm);
+ print join(' ', @cmd), "\n";
+ system(@cmd);
+ }
+};
# According to "Introduction to Algorithms" by Cormen et al., topological

0 comments on commit 428f9a8

Please sign in to comment.
Something went wrong with that request. Please try again.