We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a1c473 commit 5a42fb4Copy full SHA for 5a42fb4
compiler/src/dotty/tools/dotc/config/PathResolver.scala
@@ -53,7 +53,8 @@ object PathResolver {
53
def classPathEnv: String = envOrElse("CLASSPATH", "")
54
def sourcePathEnv: String = envOrElse("SOURCEPATH", "")
55
56
- def javaBootClassPath: String = propOrElse("sun.boot.class.path", searchForBootClasspath)
+ //using propOrNone/getOrElse instead of propOrElse so that searchForBootClasspath is lazy evaluated
57
+ def javaBootClassPath: String = propOrNone("sun.boot.class.path") getOrElse searchForBootClasspath
58
59
def javaExtDirs: String = propOrEmpty("java.ext.dirs")
60
def scalaHome: String = propOrEmpty("scala.home")
0 commit comments