From b4dcf7837accf04fd660b58354b0adca7d86c90f Mon Sep 17 00:00:00 2001 From: Hamza REMMAL Date: Fri, 2 Aug 2024 18:17:43 +0200 Subject: [PATCH] Wrap the arguments passed to test scalac task between " --- project/Build.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/project/Build.scala b/project/Build.scala index 4f90566a60f9..05eb164f91f3 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -844,7 +844,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,