From 655ed0f7c8031b41bf9d390ccbfcdaf8df9fdad1 Mon Sep 17 00:00:00 2001 From: Elena Lepilkina Date: Wed, 6 Apr 2022 08:32:46 +0300 Subject: [PATCH] [K/N][perf] Fix compile task name for debug binaries --- .../org/jetbrains/kotlin/benchmark/BenchmarkingPlugin.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/benchmark/BenchmarkingPlugin.kt b/kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/benchmark/BenchmarkingPlugin.kt index 7a6340465e4..5f84ca7d9f3 100644 --- a/kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/benchmark/BenchmarkingPlugin.kt +++ b/kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/benchmark/BenchmarkingPlugin.kt @@ -217,8 +217,11 @@ abstract class BenchmarkingPlugin: Plugin { doLast { val applicationName = benchmark.applicationName val benchContents = buildDir.resolve(nativeBenchResults).readText() - val nativeCompileTime = if (benchmark.compileTasks.isEmpty()) getNativeCompileTime(project, applicationName) - else getNativeCompileTime(project, applicationName, benchmark.compileTasks) + val nativeCompileTasks = if (benchmark.compileTasks.isEmpty()) { + listOf("linkBenchmark${benchmark.buildType.name.lowercase().replaceFirstChar { it.uppercase() }}ExecutableNative") + } else benchmark.compileTasks + + val nativeCompileTime = getNativeCompileTime(project, applicationName, nativeCompileTasks) val properties = commonBenchmarkProperties + mapOf( "type" to "native",