@@ -49,13 +49,17 @@ class CachedCompilerImpl(args: Array[String], output: Output, resident: Boolean)
4949 def commandArguments (sources : Array [File ]): Array [String ] =
5050 (outputArgs ++ args.toList ++ sources.map(_.getAbsolutePath).sortWith(_ < _)).toArray[String ]
5151
52- def run (sources : Array [File ], changes : DependencyChanges , callback : AnalysisCallback , log : Logger , delegate : Reporter , progress : CompileProgress ): Unit = synchronized {
53- run(sources.toList, changes, callback, log, progress)
52+ def run (sources : Array [File ], changes : DependencyChanges , callback : AnalysisCallback ,
53+ log : Logger , delegate : Reporter , progress : CompileProgress ): Unit = synchronized {
54+
55+ run(sources.toList, changes, callback, log, delegate, progress)
5456 }
55- private [this ] def run (sources : List [File ], changes : DependencyChanges , callback : AnalysisCallback , log : Logger , compileProgress : CompileProgress ): Unit = {
57+ private [this ] def run (sources : List [File ], changes : DependencyChanges , callback : AnalysisCallback ,
58+ log : Logger , delegate : Reporter , compileProgress : CompileProgress ): Unit = {
5659 debug(log, args.mkString(" Calling Dotty compiler with arguments (CompilerInterface):\n\t " , " \n\t " , " " ))
5760 val ctx = (new ContextBase ).initialCtx.fresh
5861 .setSbtCallback(callback)
62+ .setReporter(DelegatingReporter (delegate))
5963 val cl = getClass.getClassLoader.asInstanceOf [URLClassLoader ]
6064
6165 val reporter = DottyMain .process(commandArguments(sources.toArray), ctx)
0 commit comments