kotlinx-benchmark
kotlinx-benchmark copied to clipboard
NO SOURCE for native targets, using Kotlin 2.1 (dev builds)
trafficstars
Using recent Kotlin 2.1 builds (e.g. 2.1.0-dev-6359)
plugins {
kotlin("multiplatform")
id("org.jetbrains.kotlinx.benchmark")
}
kotlin {
jvm()
macosArm64()
sourceSets.commonMain.dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-benchmark-runtime:0.4.11")
}
}
benchmark {
targets {
register("jvm")
register("macosArm64")
}
}
Then executing macosArm64Benchmark is skipped because of ' NO-SOURCE
Reproducer Project:
https://github.com/sellmair/kotlin-multiplatform-projects/tree/KT-70695/Float-Double.isFinite-can-be-optimized-kotlinx-report
It seems like the problem is already fixed in master, but a build from master won't work for now due to https://youtrack.jetbrains.com/issue/KT-71414
This should be fixed in the latest version 0.4.13