From <#C3PQML5NU|multiplatform>: <https://kotlinla...
# compiler
r
b
Yes, I've been following Brian Norman's blog posts and sample projects. He talks about it briefly in the 1st of 6 posts on writing compiler plugins: https://bnorm.medium.com/writing-your-second-kotlin-compiler-plugin-part-1-project-setup-7b05c7d93f6c
You create one compiler plugin for jvm, one for native, and expose them through a Gradle plugin that extends
KotlinCompilerPluginSupportPlugin
, overriding
getPluginArtifact()
and
getPluginArtifactForNative()
.
r
See the thread, we're wanting to specify that user side, not as part of the plugin. I.e. what if you have multiple JVM targets but only want to apply a plugin to one?
b
Ah my mistake.