Skip to content

Commit 0ff65a5

Browse files
committed
Address review
1 parent 7727d51 commit 0ff65a5

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

compiler/src/dotty/tools/dotc/consumetasty/ConsumeTasty.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ object ConsumeTasty {
1717
}
1818

1919
val currentClasspath = QuoteDriver.currentClasspath
20-
import java.io.File.{ pathSeparator => sep }
20+
import java.io.File.{ pathSeparator => sep }
2121
val args = "-from-tasty" +: "-classpath" +: s"$classpath$sep$currentClasspath" +: classes
2222
(new Consume).process(args.toArray)
2323
}

project/Build.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -623,13 +623,12 @@ object Build {
623623
val args: List[String] = spaceDelimited("<arg>").parsed.toList
624624
val attList = (dependencyClasspath in Runtime).value
625625
val jars = packageAll.value
626-
import File.{ pathSeparator => sep }
627626

628627
val scalaLib = findLib(attList, "scala-library")
629628
val dottyLib = jars("dotty-library")
630629

631630
def run(args: List[String]): Unit = {
632-
val fullArgs = insertClasspathInArgs(args, List(".", dottyLib, scalaLib).mkString(sep))
631+
val fullArgs = insertClasspathInArgs(args, List(".", dottyLib, scalaLib).mkString(File.pathSeparator))
633632
runProcess("java" :: fullArgs, wait = true)
634633
}
635634

@@ -645,7 +644,7 @@ object Build {
645644
val asm = findLib(attList, "scala-asm")
646645
val dottyCompiler = jars("dotty-compiler")
647646
val dottyInterfaces = jars("dotty-interfaces")
648-
run(insertClasspathInArgs(args1, List(dottyCompiler, dottyInterfaces, asm).mkString(sep)))
647+
run(insertClasspathInArgs(args1, List(dottyCompiler, dottyInterfaces, asm).mkString(File.pathSeparator)))
649648
} else run(args)
650649
},
651650

0 commit comments

Comments
 (0)