Skip to content

Commit adfe16c

Browse files
authored
Merge pull request #13759 from philwalk/set-system-property-scala.home
provide scala.home setting for scripts - fix for #13758
2 parents 54ff628 + ae03590 commit adfe16c

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)