Skip to content

Commit 25c0b55

Browse files
committed
Wrap the arguments passed to test scalac task between "
[Cherry-picked b4dcf78][modified]
1 parent 1fc2533 commit 25c0b55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

project/Build.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,8 @@ object Build {
742742
extraClasspath ++= Seq(dottyCompiler, dottyInterfaces, asm, dottyStaging, dottyTastyInspector, tastyCore, compilerInterface)
743743
}
744744

745-
val fullArgs = main :: (if (printTasty) args else insertClasspathInArgs(args, extraClasspath.mkString(File.pathSeparator)))
745+
val wrappedArgs = (if (printTasty) args else insertClasspathInArgs(args, extraClasspath.mkString(File.pathSeparator))).map(arg => "\""+ arg + "\"")
746+
val fullArgs = main :: wrappedArgs
746747

747748
(Compile / runMain).toTask(fullArgs.mkString(" ", " ", ""))
748749
}.evaluated,

0 commit comments

Comments
 (0)