Introduce "-Xreport-output-files" to report source-output mapping for JPS

This makes "-verbose" not required for JPS to run correctly and
therefore allows to print more useful debugging stuff in the compiler
and read them in CLI, for example. The output will also be more readable
because there'll be no "output" messages

Original commit: d8d3bafbe9
This commit is contained in:
Alexander Udalov
2017-04-06 20:19:22 +03:00
parent ce22d1cf9b
commit 96f67570e6
@@ -247,8 +247,9 @@ class KotlinBuilder : ModuleLevelBuilder(BuilderCategory.SOURCE_PROCESSOR) {
return ABORT
}
val commonArguments = compilerArgumentsForChunk(chunk)
commonArguments.verbose = true // Make compiler report source to output files mapping
val commonArguments = compilerArgumentsForChunk(chunk).apply {
reportOutputFiles = true
}
val allCompiledFiles = getAllCompiledFilesContainer(context)
val filesToCompile = KotlinSourceFileCollector.getDirtySourceFiles(dirtyFilesHolder)