Skip to content

Commit

Permalink
Backport "Wrap the arguments passed to the scalac task between "" to …
Browse files Browse the repository at this point in the history
…LTS (#22090)

Backports #21322 to the 3.3.5.

PR submitted by the release tooling.
[skip ci]
  • Loading branch information
WojciechMazur authored Dec 3, 2024
2 parents 6232004 + 25c0b55 commit c3868fa
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 c3868fa

Please sign in to comment.