Report info message when JS IC is enabled in JPS
This commit is contained in:
@@ -35,6 +35,7 @@ import org.jetbrains.jps.model.java.JpsJavaExtensionService
|
|||||||
import org.jetbrains.jps.model.module.JpsModule
|
import org.jetbrains.jps.model.module.JpsModule
|
||||||
import org.jetbrains.kotlin.build.GeneratedFile
|
import org.jetbrains.kotlin.build.GeneratedFile
|
||||||
import org.jetbrains.kotlin.cli.common.arguments.CommonCompilerArguments
|
import org.jetbrains.kotlin.cli.common.arguments.CommonCompilerArguments
|
||||||
|
import org.jetbrains.kotlin.cli.common.messages.CompilerMessageSeverity
|
||||||
import org.jetbrains.kotlin.cli.common.messages.CompilerMessageSeverity.ERROR
|
import org.jetbrains.kotlin.cli.common.messages.CompilerMessageSeverity.ERROR
|
||||||
import org.jetbrains.kotlin.cli.common.messages.CompilerMessageSeverity.INFO
|
import org.jetbrains.kotlin.cli.common.messages.CompilerMessageSeverity.INFO
|
||||||
import org.jetbrains.kotlin.cli.common.messages.MessageCollectorUtil
|
import org.jetbrains.kotlin.cli.common.messages.MessageCollectorUtil
|
||||||
@@ -89,6 +90,11 @@ class KotlinBuilder : ModuleLevelBuilder(BuilderCategory.SOURCE_PROCESSOR) {
|
|||||||
LOG.debug("==========================================")
|
LOG.debug("==========================================")
|
||||||
LOG.info("is Kotlin incremental compilation enabled for JVM: ${IncrementalCompilation.isEnabledForJvm()}")
|
LOG.info("is Kotlin incremental compilation enabled for JVM: ${IncrementalCompilation.isEnabledForJvm()}")
|
||||||
LOG.info("is Kotlin incremental compilation enabled for JS: ${IncrementalCompilation.isEnabledForJs()}")
|
LOG.info("is Kotlin incremental compilation enabled for JS: ${IncrementalCompilation.isEnabledForJs()}")
|
||||||
|
if (IncrementalCompilation.isEnabledForJs()) {
|
||||||
|
val messageCollector = MessageCollectorAdapter(context, null)
|
||||||
|
messageCollector.report(CompilerMessageSeverity.INFO, "Using experimental incremental compilation for Kotlin/JS")
|
||||||
|
}
|
||||||
|
|
||||||
LOG.info("is Kotlin compiler daemon enabled: ${isDaemonEnabled()}")
|
LOG.info("is Kotlin compiler daemon enabled: ${isDaemonEnabled()}")
|
||||||
|
|
||||||
val historyLabel = context.getBuilderParameter("history label")
|
val historyLabel = context.getBuilderParameter("history label")
|
||||||
|
|||||||
Reference in New Issue
Block a user