Skip to content

Commit 28b58c0

Browse files
committed
Add install libdir into jvmconfig.properties
1 parent 826338b commit 28b58c0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tools/build/gen-jvm-properties.pl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
print <<"END";
2626
# This file automatically generated by $0
2727
28-
runtime.args=-Xbootclasspath/a:.${cpsep}${thirdPartyJars}
28+
runtime.bootclasspath=-Xbootclasspath/a:.${cpsep}${thirdPartyJars}
29+
runtime.classpath=${libdir}
2930
runtime.jars=${thirdPartyJars}
3031
END

tools/build/install-jvm-runner.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
my $install_to = File::Spec->catfile($prefix, 'bin', 'nqp.bat');
2020
open my $fh, ">", $install_to
2121
or die "Could not open $install_to: $!";
22-
print $fh '@java -Xbootclasspath/a:$jar_dir\\nqp-runtime.jar;' .
22+
print $fh '@java -Xmx512m -Xbootclasspath/a:$jar_dir\\nqp-runtime.jar;' .
2323
"$jar_dir\\asm-4.1.jar;$jar_dir\\jline-1.0.jar;$lib_dir\\nqp.jar -cp $lib_dir nqp %*\n";
2424
close $fh
2525
or die "Could not close $install_to: $!";
@@ -29,7 +29,7 @@
2929
open my $fh, ">", $install_to
3030
or die "Could not open $install_to: $!";
3131
print $fh "#!/bin/sh\n";
32-
print $fh "exec java -Xbootclasspath/a:$jar_dir/nqp-runtime.jar:" .
32+
print $fh "exec java -Xmx512m -Xbootclasspath/a:$jar_dir/nqp-runtime.jar:" .
3333
"$jar_dir/asm-4.1.jar:$jar_dir/jline-1.0.jar:$lib_dir/nqp.jar -cp $lib_dir nqp \"\$\@\"\n";
3434
close $fh
3535
or die "Could not close $install_to: $!";

0 commit comments

Comments
 (0)