Hello, I'm trying to separate the API and IMPL fro...
# kotlin-native
x
Hello, I'm trying to separate the API and IMPL from Klib, so as to achieve more efficient incremental compilation (based on Bazel's own mechanism that if its input doesn't change, it won't rebuild itself, allowing modules to rely only on API for compile-only). I currently have several ideas, but they all seem not very elegant, and I hope to get some suggestions. 1. Implement a KCP plugin to replace all function bodies with "todo" (this will compile twice). 2. Modify the Klib compilation product to remove the IR directory (this seems very risky). Does KN itself have the ability similar to Bazel's java_library interface.jar, which can improve incremental changes?