Skip to content

Commit 7e093b1

Browse files
michelouallanrenucci
authored andcommitted
Fix path separator in fromtasty.Debug (#5452)
1 parent bcdc431 commit 7e093b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/src/dotty/tools/dotc/fromtasty/Debug.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import scala.util.control.NonFatal
66

77
import dotty.tools.io.Directory
88

9+
import java.io.{File => JFile}
910
import java.nio.file.{Files, Paths}
1011

1112
object Debug {
@@ -65,7 +66,7 @@ object Debug {
6566

6667
private def insertClasspathInArgs(args: List[String], cp: String): List[String] = {
6768
val (beforeCp, fromCp) = args.span(_ != "-classpath")
68-
val classpath = fromCp.drop(1).headOption.fold(cp)(_ + ":" + cp)
69+
val classpath = fromCp.drop(1).headOption.fold(cp)(_ + JFile.pathSeparator + cp)
6970
"-classpath" :: classpath :: beforeCp ::: fromCp.drop(2)
7071
}
7172
}

0 commit comments

Comments
 (0)