@@ -49,13 +49,17 @@ class CachedCompilerImpl(args: Array[String], output: Output, resident: Boolean)
49
49
def commandArguments (sources : Array [File ]): Array [String ] =
50
50
(outputArgs ++ args.toList ++ sources.map(_.getAbsolutePath).sortWith(_ < _)).toArray[String ]
51
51
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)
54
56
}
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 = {
56
59
debug(log, args.mkString(" Calling Dotty compiler with arguments (CompilerInterface):\n\t " , " \n\t " , " " ))
57
60
val ctx = (new ContextBase ).initialCtx.fresh
58
61
.setSbtCallback(callback)
62
+ .setReporter(DelegatingReporter (delegate))
59
63
val cl = getClass.getClassLoader.asInstanceOf [URLClassLoader ]
60
64
61
65
val reporter = DottyMain .process(commandArguments(sources.toArray), ctx)
0 commit comments