The full setup is only for C, but the idea of how to link Kotlin/Wasm with a third-party binary is universal. So, you can use it for linking any language which could be compiled to Wasm. The only thing you need to customize in the example is the task which produces a Wasm-binary from sources (the task which is using clang)
f
Fudge
03/10/2025, 11:07 PM
I'm thinking you can possibly encounter issues where the C++ output would not be stable as C++ generally does not have stable ABI, at least when compiling to native code
n
napperley
03/11/2025, 1:17 AM
Could something similar also be applied to Kotlin Native programs/libraries (just a crazy idea)? Or is there something in the works that is specific to Kotlin Native, but we don't know about it yet. I suspect the answer is no.