Kotlin / kotlinx-benchmark

Kotlin multiplatform benchmarking toolkit
Apache License 2.0
513 stars 41 forks source link

NO SOURCE for native targets, using Kotlin 2.1 (dev builds) #259

Open sellmair opened 2 months ago

sellmair commented 2 months ago

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

fzhinkin commented 2 months ago

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