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 () {
192
192
193
193
default_java_opts=" -Xmx768m -Xms768m"
194
194
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
+
195
200
addJava () {
196
201
java_args+=(" '$1 '" )
197
202
}
@@ -207,11 +212,6 @@ addScripting () {
207
212
prepScalacCommandLine () {
208
213
withCompiler=true
209
214
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
-
215
215
while [[ $# -gt 0 ]]; do
216
216
case " $1 " in
217
217
--) 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
33
33
prepScalacCommandLine " $@ "
34
34
35
35
# 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-} "
37
46
scala_exit_status=$?
38
47
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ if [ -z "$PROG_HOME" ] ; then
27
27
fi
28
28
29
29
source " $PROG_HOME /bin/common"
30
-
30
+ default_java_opts= " -Xmx768m -Xms768m "
31
31
withCompiler=true
32
32
33
33
CompilerMain=dotty.tools.dotc.Main
You can’t perform that action at this time.
0 commit comments