natario1
05/03/2021, 4:06 PM@Function
annotation. May be a weird idea but what I'm thinking is:
• add a fake JVM target which reads the non-JVM source set
• run KSP on this target, count @Function
s or any other read-only symbol operation
• have compilation fail, we don't care because it's a fake target
Would this be possible? I'm not sure if KSP gets a chance to run if the source set is not compilable (it has non-JVM imports, non-JVM dependencies...)russhwolf
05/03/2021, 4:27 PMrusshwolf
05/03/2021, 4:27 PMnatario1
05/03/2021, 4:47 PMimport foo
and later foo.bar()
. My KSP processor just logs hello world.
Great news is that in a clean gradle build, I can see the KSP log before failure. If this works with other platforms too (it should?), I think we only need a way to catch and swallow the error. In Gradle or maybe some special compiler flagrusshwolf
05/03/2021, 4:59 PMrusshwolf
05/03/2021, 4:59 PMnatario1
05/06/2021, 8:59 AMrusshwolf
05/06/2021, 3:34 PM