Skip to content

Commit 15b912a

Browse files
committed
Use File.pathSeparator
1 parent ff48634 commit 15b912a

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
@@ -150,7 +150,8 @@ class Driver {
150150
}.unzip
151151
val ctx1 = ctx0.fresh
152152
val classPaths1 = classPaths.distinct.filter(_ != "")
153-
ctx1.setSetting(ctx1.settings.classpath, (ctx1.settings.classpath.value(ctx1) :: classPaths1).mkString(":"))
153+
val fullClassPath = (ctx1.settings.classpath.value(ctx1) :: classPaths1).mkString(java.io.File.pathSeparator)
154+
ctx1.setSetting(ctx1.settings.classpath, fullClassPath)
154155
(classNames, ctx1)
155156
} else (fileNames0, ctx0)
156157
doCompile(newCompiler(ctx), fileNames)(ctx)

0 commit comments

Comments
 (0)