bazelbuild / rules_kotlin

Bazel rules for Kotlin
Apache License 2.0
331 stars 206 forks source link

-Xbackend-threads compatibility with Kotlin ABI compiler #791

Open Bencodes opened 2 years ago

Bencodes commented 2 years ago

The Kotlin ABI compiler is not fully compatible with the -Xbackend-threads compiler flag and should be avoided until Jetbrains can fix the underlying issue.

Jetbrains issue tracker: https://youtrack.jetbrains.com/issue/KT-52824/jvm-abi-gen-plugin-fails-with-Xbackend-threads Related conversations: can be found here https://github.com/bazelbuild/rules_kotlin/pull/773

rockwotj commented 7 months ago

FYI @Bencodes they (Jetbrains) claim to have fixed this in Kotlin 2.0.0-Beta5: https://youtrack.jetbrains.com/issue/KT-52824/JVM-IR-jvm-abi-gen-plugin-fails-with-Xbackend-threads#focus=Comments-27-9062884.0-0

cc: @Tagakov

I am no longer in a position to test if this works, but maybe you can give it a try again @Bencodes?