File tree Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -192,6 +192,11 @@ classpathArgs () {
192192
193193default_java_opts=" -Xmx768m -Xms768m"
194194
195+ CompilerMain=dotty.tools.dotc.Main
196+ DecompilerMain=dotty.tools.dotc.decompiler.Main
197+ ReplMain=dotty.tools.repl.Main
198+ ScriptingMain=dotty.tools.scripting.Main
199+
195200addJava () {
196201 java_args+=(" '$1 '" )
197202}
@@ -207,11 +212,6 @@ addScripting () {
207212prepScalacCommandLine () {
208213 withCompiler=true
209214
210- CompilerMain=dotty.tools.dotc.Main
211- DecompilerMain=dotty.tools.dotc.decompiler.Main
212- ReplMain=dotty.tools.repl.Main
213- ScriptingMain=dotty.tools.scripting.Main
214-
215215 while [[ $# -gt 0 ]]; do
216216 case " $1 " in
217217 --) shift ; for arg; do addResidual " $arg " ; done ; set -- ;;
Original file line number Diff line number Diff line change @@ -33,6 +33,15 @@ PROG_NAME=$CompilerMain
3333prepScalacCommandLine " $@ "
3434
3535# exec here would prevent onExit from being called, leaving terminal in unusable state
36- eval " \" $JAVACMD \" " " $DEBUG " " -classpath \" $cp_arg \" " " ${java_args[@]} " " ${residual_args[@]} "
36+ eval " \" $JAVACMD \" " \
37+ ${JAVA_OPTS:- $default_java_opts } \
38+ " ${DEBUG-} " \
39+ " ${java_args[@]} " \
40+ " $jvm_cp_args " \
41+ -Dscala.usejavacp=true \
42+ " $PROG_NAME " \
43+ " ${scala_args[@]} " \
44+ " ${residual_args[@]} " \
45+ " ${scripting_string-} "
3746scala_exit_status=$?
3847
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ if [ -z "$PROG_HOME" ] ; then
2727fi
2828
2929source " $PROG_HOME /bin/common"
30-
30+ default_java_opts= " -Xmx768m -Xms768m "
3131withCompiler=true
3232
3333CompilerMain=dotty.tools.dotc.Main
You can’t perform that action at this time.
0 commit comments