XinzhengZhang
05/22/2025, 4:07 AMkonanc
for incremental compilation of the compiler frontend (Kotlin Ir klib)? I saw -Xuse-fir-ic
and -Xuse-fir-lt
in konanc -X
, which seem to be only effective for JVM and only for Maven compiler.XinzhengZhang
05/22/2025, 4:28 AMCurrently, Kotlin/Native compiles all project files in a single batch in two stages: 1. Compile project sources to IR inIn my daily use, the performance of stage2 in debug mode is relatively good, but the problems of stage1 have been exposed. In my project, on average, the process of compiling klib with Konanc takes about 30 seconds. Is there any room for optimization on stage1 now?, 2. Compileklib
into a binary (excluding cached external dependencies in debug mode). This means that even if the developer changes just one line, the whole project is recompiled, which is obviously not desirable.klibs