Hi everyone, does KSP require multiple kotlinc invocations in order to output the final class files (first to run the ksp processors and then another invocation to do the actual compilation) or it’s technically possible to do the whole compilation in a single kotlinc call?
t
Ting-Yuan Huang
12/14/2021, 6:15 AM
In Gradle, it requires two invocations because incremental processing and incremental compilation have different dirty sets. In command line, because there is no incremental processing/compilation, the plugin opt
withCompilation=true
can be used to combine processing and compilation into one invocation.