kotlinx-benchmark icon indicating copy to clipboard operation
kotlinx-benchmark copied to clipboard

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

Open sellmair opened this issue 1 year ago • 1 comments
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

sellmair avatar Sep 11 '24 08:09 sellmair

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

fzhinkin avatar Sep 11 '24 14:09 fzhinkin

This should be fixed in the latest version 0.4.13

qurbonzoda avatar Nov 26 '24 08:11 qurbonzoda