Skip to content

Commit c3868fa

Browse files
Backport "Wrap the arguments passed to the scalac task between "" to LTS (#22090)
Backports #21322 to the 3.3.5. PR submitted by the release tooling. [skip ci]
2 parents 6232004 + 25c0b55 commit c3868fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

project/Build.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,8 @@ object Build {
742742
extraClasspath ++= Seq(dottyCompiler, dottyInterfaces, asm, dottyStaging, dottyTastyInspector, tastyCore, compilerInterface)
743743
}
744744

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

747748
(Compile / runMain).toTask(fullArgs.mkString(" ", " ", ""))
748749
}.evaluated,

0 commit comments

Comments
 (0)