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",