Skip to content

Commit ee45ffe

Browse files
committed
Fix NQP runner on Windows, so make test works.
1 parent 31d3bce commit ee45ffe

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Configure.pl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,12 @@
200200
'tools/build/Makefile-Parrot.in', $MAKEFILE,
201201
%config,
202202
);
203-
fill_template_file('src/vm/parrot/nqp.sh', 'gen/parrot/nqp_launcher', %config);
203+
if ($^O eq 'MSWin32') {
204+
fill_template_file('src/vm/parrot/nqp.bat', 'gen/parrot/nqp_launcher', %config);
205+
}
206+
else {
207+
fill_template_file('src/vm/parrot/nqp.sh', 'gen/parrot/nqp_launcher', %config);
208+
}
204209
chmod 0755, 'gen/parrot/nqp_launcher';
205210
}
206211
if ($backends{moar}) {

src/vm/parrot/nqp.bat

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
@ECHO OFF
2-
@@bindir@@/parrot@@exe@@ -L. -X. --library=gen/parrot gen/parrot/nqp.pbc \
3-
--module-path=gen/parrot --setting-path=gen/parrot %*
4-
2+
@@bindir@@/parrot@@exe@@ -L. -X. --library=gen/parrot gen/parrot/nqp.pbc --module-path=gen/parrot --setting-path=gen/parrot %*

0 commit comments

Comments
 (0)