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
…3.5.2 (#21482)

Backports #21322 to the 3.5.2 branch.

PR submitted by the release tooling.
[skip ci]
  • Loading branch information
WojciechMazur authored Aug 28, 2024
2 parents d9a4f88 + 37d1241 commit 1e0e136
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 1e0e136

Please sign in to comment.