diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/build/Makefile.in | 6 | ||||
-rw-r--r-- | tools/build/module-install.pl | 22 |
2 files changed, 17 insertions, 11 deletions
diff --git a/tools/build/Makefile.in b/tools/build/Makefile.in index 172de12..7c169c1 100644 --- a/tools/build/Makefile.in +++ b/tools/build/Makefile.in @@ -79,7 +79,7 @@ modules-install: rakudo-install @echo "== Installing modules" $(PERL) tools/build/module-install.pl $(DESTDIR)$(PERL6_INSTALL) $(DESTDIR)$(PERL6_LANG_DIR)/lib $(MODULES) @echo "== Installing binaries" - $(PERL) tools/build/bin-install.pl $(DESTDIR)$(PERL6_INSTALL) $(DESTDIR)$(PARROT_BIN_DIR) modules/ufo/bin/ufo modules/panda/bin/panda modules/doc/bin/p6doc + $(PERL) tools/build/bin-install.pl $(PERL6_INSTALL) $(DESTDIR)$(PARROT_BIN_DIR) modules/ufo/bin/ufo modules/panda/bin/panda modules/doc/bin/p6doc modules-test: $(PERL) tools/build/modules-test.pl $(CURDIR) $(DESTDIR)$(PERL6_INSTALL) modules/MODULES.txt @@ -88,8 +88,10 @@ perl6-debug: $(RD_EXE) $(RD_EXE): modules-install $(NQP_EXE) --vmlibs=perl6_group,perl6_ops --target=pir \ + --dynext=$(DESTDIR)$(PARROT_LIB_DIR)/dynext/ \ + --module-path=$(DESTDIR)$(PARROT_LIB_DIR)/languages/nqp/lib \ --output=$(RD_PIR) $(RD_DIR)/bin/perl6-debug.nqp - $(PARROT_EXE) -o $(RD_PBC) $(RD_PIR) + $(PARROT_EXE) --dynext $(DESTDIR)$(PARROT_LIB_DIR)/dynext/ -o $(RD_PBC) $(RD_PIR) $(PBC_TO_EXE) $(RD_PBC) $(CHMOD) 755 $(RD_EXE) diff --git a/tools/build/module-install.pl b/tools/build/module-install.pl index c5a4deb..6522154 100644 --- a/tools/build/module-install.pl +++ b/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 |