Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make sure that resources are available to NQP when compiling the debu…
…gger

Currently, NQP needs to access the Perl6::Grammar class from Rakudo,
as well as some of the dynext ops from Rakudo.  If using
make install DESTDIR=$dir, they've been installed to a staging location
rather than their final destination, so we need to show NQP where they
are.  We do this by creating symbolic links to the required resources.

PLEASE, PLEASE, PLEASE fix this up if NQP adds a way to control where
it looks for Perl 6 modules or for dynext files!  This is a horrible
hack and I'm not terribly proud of it!
  • Loading branch information
hoelzro committed Dec 19, 2012
1 parent 428f9a8 commit 977ee04
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/build/Makefile.in
Expand Up @@ -87,11 +87,15 @@ modules-test:
perl6-debug: $(RD_EXE)

$(RD_EXE): modules-install
ln -s $(DESTDIR)$(PARROT_LIB_DIR)/languages/nqp/lib/Perl6 Perl6
ln -s $(DESTDIR)$(PARROT_LIB_DIR)/dynext dynext
$(NQP_EXE) --vmlibs=perl6_group,perl6_ops --target=pir \
--output=$(RD_PIR) $(RD_DIR)/bin/perl6-debug.nqp
$(PARROT_EXE) -o $(RD_PBC) $(RD_PIR)
$(PBC_TO_EXE) $(RD_PBC)
$(CHMOD) 755 $(RD_EXE)
unlink Perl6
unlink dynext

perl6-debug-install: perl6-debug
$(CP) $(RD_EXE) $(DESTDIR)$(PARROT_BIN_DIR)
Expand Down

0 comments on commit 977ee04

Please sign in to comment.