Skip to content

Commit fc7bdf1

Browse files
committed
Use File.pathSeparator
1 parent 9ff94c9 commit fc7bdf1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/src/dotty/tools/dotc/Driver.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ class Driver {
147147
}.unzip
148148
val ctx1 = ctx0.fresh
149149
val classPaths1 = classPaths.distinct.filter(_ != "")
150-
ctx1.setSetting(ctx1.settings.classpath, (ctx1.settings.classpath.value(ctx1) :: classPaths1).mkString(":"))
150+
val fullClassPath = (ctx1.settings.classpath.value(ctx1) :: classPaths1).mkString(java.io.File.pathSeparator)
151+
ctx1.setSetting(ctx1.settings.classpath, fullClassPath)
151152
(classNames, ctx1)
152153
} else (fileNames0, ctx0)
153154
doCompile(newCompiler(ctx), fileNames)(ctx)

0 commit comments

Comments
 (0)