Skip to content

Commit ae03590

Browse files
committed
provide scala.home setting for scripts
1 parent 3e192a3 commit ae03590

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dist/bin/scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ source "$PROG_HOME/bin/common"
3131
# exec here would prevent onExit from being called, leaving terminal in unusable state
3232
compilerJavaClasspathArgs
3333
[ -z "${ConEmuPID-}" -o -n "${cygwin-}" ] && export MSYSTEM= PWD= # workaround for #12405
34-
eval "\"$JAVACMD\"" "-classpath \"$jvm_cp_args\"" "dotty.tools.MainGenericRunner" "-classpath \"$jvm_cp_args\"" "$@"
34+
eval "\"$JAVACMD\"" "-Dscala.home=$PROG_HOME" "-classpath \"$jvm_cp_args\"" "dotty.tools.MainGenericRunner" "-classpath \"$jvm_cp_args\"" "$@"
3535
scala_exit_status=$?
3636

3737

0 commit comments

Comments
 (0)