Skip to content

Commit b4dcf78

Browse files
committed
Wrap the arguments passed to test scalac task between "
1 parent 6c4eace commit b4dcf78

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
@@ -844,7 +844,8 @@ object Build {
844844
extraClasspath ++= Seq(dottyCompiler, dottyInterfaces, asm, dottyStaging, dottyTastyInspector, tastyCore, compilerInterface)
845845
}
846846

847-
val fullArgs = main :: defaultOutputDirectory ::: (if (printTasty) args else insertClasspathInArgs(args, extraClasspath.mkString(File.pathSeparator)))
847+
val wrappedArgs = (if (printTasty) args else insertClasspathInArgs(args, extraClasspath.mkString(File.pathSeparator))).map(arg => "\""+ arg + "\"")
848+
val fullArgs = main :: defaultOutputDirectory ::: wrappedArgs
848849

849850
(Compile / runMain).toTask(fullArgs.mkString(" ", " ", ""))
850851
}.evaluated,

0 commit comments

Comments
 (0)