Skip to content

Commit ee511b0

Browse files
committed
Escape the '\' between "
1 parent 6e852d2 commit ee511b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

project/Build.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -889,8 +889,8 @@ object Build {
889889
extraClasspath ++= Seq(dottyCompiler, dottyInterfaces, asm, dottyStaging, dottyTastyInspector, tastyCore, compilerInterface)
890890
}
891891

892-
val wrappedArgs = (if (printTasty) args else insertClasspathInArgs(args, extraClasspath.mkString(File.pathSeparator))).map(arg => "\""+ arg + "\"")
893-
val fullArgs = main :: defaultOutputDirectory ::: wrappedArgs
892+
val wrappedArgs = if (printTasty) args else insertClasspathInArgs(args, extraClasspath.mkString(File.pathSeparator))
893+
val fullArgs = main :: defaultOutputDirectory ::: wrappedArgs.map("\""+ _ + "\"").map(_.replace("\\", "\\\\"))
894894

895895
(Compile / runMain).toTask(fullArgs.mkString(" ", " ", ""))
896896
}.evaluated,

0 commit comments

Comments
 (0)