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]
  • Loading branch information
hamzaremmal authored and WojciechMazur committed Aug 28, 2024
1 parent eeb7112 commit 37d1241
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 @@ -838,7 +838,8 @@ object Build {
extraClasspath ++= Seq(dottyCompiler, dottyInterfaces, asm, dottyStaging, dottyTastyInspector, tastyCore, compilerInterface)
}

val fullArgs = main :: defaultOutputDirectory ::: (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 :: defaultOutputDirectory ::: wrappedArgs

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

0 comments on commit 37d1241

Please sign in to comment.