Skip to content

Commit 37d1241

Browse files
hamzaremmalWojciechMazur
authored andcommitted
Wrap the arguments passed to test scalac task between "
[Cherry-picked b4dcf78]
1 parent eeb7112 commit 37d1241

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

project/Build.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,8 @@ object Build {
838838
extraClasspath ++= Seq(dottyCompiler, dottyInterfaces, asm, dottyStaging, dottyTastyInspector, tastyCore, compilerInterface)
839839
}
840840

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

843844
(Compile / runMain).toTask(fullArgs.mkString(" ", " ", ""))
844845
}.evaluated,

0 commit comments

Comments
 (0)