Skip to content

Commit

Permalink
Wrap the arguments passed to test scalac task between "
Browse files Browse the repository at this point in the history
[Cherry-picked b4dcf78][modified]
  • Loading branch information
WojciechMazur committed Dec 2, 2024
1 parent 1fc2533 commit 25c0b55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,8 @@ object Build {
extraClasspath ++= Seq(dottyCompiler, dottyInterfaces, asm, dottyStaging, dottyTastyInspector, tastyCore, compilerInterface)
}

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

(Compile / runMain).toTask(fullArgs.mkString(" ", " ", ""))
}.evaluated,
Expand Down

0 comments on commit 25c0b55

Please sign in to comment.