Skip to content

Commit 86d3b60

Browse files
author
Martijn Hoekstra
committed
use cross platform path separatator in build
1 parent c6687a3 commit 86d3b60

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

project/Build.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ object Build {
453453
def findLib(attList: Seq[Attributed[File]], name: String) = attList
454454
.map(_.data.getAbsolutePath)
455455
.find(_.contains(name))
456-
.toList.mkString(":")
456+
.toList.mkString(java.io.File.pathSeparatorChar.toString)
457457

458458
// Settings shared between dotty-compiler and dotty-compiler-bootstrapped
459459
lazy val commonDottyCompilerSettings = Seq(
@@ -682,13 +682,13 @@ object Build {
682682
else if (debugFromTasty) "dotty.tools.dotc.fromtasty.Debug"
683683
else "dotty.tools.dotc.Main"
684684

685-
var extraClasspath = s"$scalaLib:$dottyLib"
686-
if ((decompile || printTasty) && !args.contains("-classpath")) extraClasspath += ":."
685+
var extraClasspath = s"$scalaLib${java.io.File.pathSeparator}$dottyLib"
686+
if ((decompile || printTasty) && !args.contains("-classpath")) extraClasspath += s"${java.io.File.pathSeparator}."
687687
if (args0.contains("-with-compiler")) {
688688
if (!isDotty.value) {
689689
throw new MessageOnlyException("-with-compiler can only be used with a bootstrapped compiler")
690690
}
691-
extraClasspath += s":$dottyCompiler"
691+
extraClasspath += s"${java.io.File.pathSeparator}:$dottyCompiler"
692692
}
693693

694694
val fullArgs = main :: insertClasspathInArgs(args, extraClasspath)

0 commit comments

Comments
 (0)