Is there a way, via gradle configuration or a compiler plugin, to get the compiler to generate a klib for JVM? I want to use the IR after compilation (creating bindings for a compiler plugin to use), and while I could use a plugin to write those bindings to an external file, if I can just use the klib I won't have to worry about incremental compilation.
To clarify, we have no plans for producing klib on JVM at this moment. We have a prototype for consuming klibs (which is necessary for multiplatform use cases), and a prototype for serializing/deserializing IR just for inline functions. But we are not working on producing klibs in Kotlin/JVM.