[BTA] Add debug logging about the used compilation strategy

^KT-61860 In Progress
This commit is contained in:
Alexander.Likhachev
2023-11-09 22:20:47 +01:00
committed by Space Team
parent dda6b92c13
commit 0196928af7
@@ -123,6 +123,7 @@ internal object CompilationServiceImpl : CompilationService {
sources: List<File>,
arguments: List<String>,
): CompilationResult {
loggerAdapter.kotlinLogger.debug("Compiling using the in-process strategy")
val compiler = K2JVMCompiler()
val parsedArguments = compiler.createArguments()
parseCommandLineArguments(arguments, parsedArguments)
@@ -182,6 +183,7 @@ internal object CompilationServiceImpl : CompilationService {
sources: List<File>,
arguments: List<String>,
): CompilationResult {
loggerAdapter.kotlinLogger.debug("Compiling using the daemon strategy")
val compilerId = CompilerId.makeCompilerId(getCurrentClasspath())
val sessionIsAliveFlagFile = buildIdToSessionFlagFile.computeIfAbsent(projectId) {
createSessionIsAliveFlagFile()