Skip to content

Commit 1e0e136

Browse files
Backport "Wrap the arguments passed to the scalac task between "" to 3.5.2 (#21482)
Backports #21322 to the 3.5.2 branch. PR submitted by the release tooling. [skip ci]
2 parents d9a4f88 + 37d1241 commit 1e0e136

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: project/Build.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,8 @@ object Build {
838838
extraClasspath ++= Seq(dottyCompiler, dottyInterfaces, asm, dottyStaging, dottyTastyInspector, tastyCore, compilerInterface)
839839
}
840840

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

843844
(Compile / runMain).toTask(fullArgs.mkString(" ", " ", ""))
844845
}.evaluated,

0 commit comments

Comments
 (0)