Skip to content

Commit d9060a7

Browse files
committed
create a ./nqp launcher
1 parent 0ad9563 commit d9060a7

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

Configure.pl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@
142142
}
143143

144144
fill_template_file('tools/build/Makefile-Parrot.in', 'Makefile', %config);
145+
fill_template_file('src/vm/parrot/nqp.sh', 'gen/parrot/nqp_launcher', %config);
146+
chmod 0755, 'gen/parrot/nqp_launcher';
145147

146148
{
147149
no warnings;

src/vm/parrot/nqp.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
@@bindir@@/parrot@@exe@@ -L. -X. --library=gen/parrot gen/parrot/nqp.pbc \
3+
--module-path=gen/parrot --setting-path=gen/parrot "$@"
4+

tools/build/Makefile-Parrot.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ PARROT_SRC_DIR = @@srcdir@@$(PARROT_VERSION)
1414
PARROT_LIBRARY_DIR = $(PARROT_LIB_DIR)/library
1515
NQP_LANG_DIR = $(PARROT_LIB_DIR)/languages/nqp
1616
HAS_ICU = @has_icu@
17+
NQP_LAUNCHER = ./nqp
1718

1819
PARROT_BUILD_DIR = gen/parrot
1920

@@ -770,6 +771,10 @@ $(ALL_PBCS): $(STAGE2_PBCS)
770771
$(CP) $(STAGE2)/$(P6QREGEX_PBC) $(PARROT_BUILD_DIR)
771772
$(CP) $(STAGE2)/$(NQP_PBC) $(PARROT_BUILD_DIR)
772773

774+
$(NQP_LAUNCHER): $(PARROT_BUILD_DIR)/$(NQP_EXE) gen/parrot/nqp_launcher
775+
$(CP) gen/parrot/nqp_launcher $(NQP_LAUNCHER)
776+
$(CHMOD) 755 $(NQP_LAUNCHER)
777+
773778
$(PARROT_BUILD_DIR)/$(NQP_EXE): $(PARROT_BUILD_DIR)/$(NQP_PBC) $(PARROT_DLL_COPY)
774779
cd $(PARROT_BUILD_DIR) && $(PBC_TO_EXE) -o$(NQP_EXE) $(NQP_PBC)
775780

0 commit comments

Comments
 (0)