From 96f67570e6f0dd3ba5dc05610ed91d5573ce9605 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Thu, 6 Apr 2017 20:19:22 +0300 Subject: [PATCH] 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: d8d3bafbe92d4d81e6561e3a47b10442260d95ca --- .../src/org/jetbrains/kotlin/jps/build/KotlinBuilder.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jps/jps-plugin/src/org/jetbrains/kotlin/jps/build/KotlinBuilder.kt b/jps/jps-plugin/src/org/jetbrains/kotlin/jps/build/KotlinBuilder.kt index 040562f2c38..7a58d5feaaa 100644 --- a/jps/jps-plugin/src/org/jetbrains/kotlin/jps/build/KotlinBuilder.kt +++ b/jps/jps-plugin/src/org/jetbrains/kotlin/jps/build/KotlinBuilder.kt @@ -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)