[K/N] skip lowerings for header caches

^KT-65443
This commit is contained in:
Johan Bay
2024-01-31 16:22:15 +01:00
committed by Space Team
parent 5adaa9a1f3
commit 04e1e19dfc
@@ -74,6 +74,7 @@ internal fun <C : PhaseContext> PhaseEngine<C>.runBackend(backendContext: Contex
newEngine(generationState) { generationStateEngine ->
if (context.config.produce.isCache) {
generationStateEngine.runPhase(BuildAdditionalCacheInfoPhase, module)
if (context.config.produce.isHeaderCache) return@newEngine
}
if (context.config.produce == CompilerOutputKind.PROGRAM) {
generationStateEngine.runPhase(EntryPointPhase, module)