[K/N] Fix coverage phase condition

This commit is contained in:
Sergey Bogolepov
2023-04-05 12:35:19 +03:00
committed by Space Team
parent b368b78faa
commit d87f3cb9cd
@@ -171,8 +171,7 @@ internal fun <T : BitcodePostProcessingContext> PhaseEngine<T>.runBitcodePostPro
null -> {}
}
}
val checkExternalCalls = context.config.configuration.getBoolean(KonanConfigKeys.CHECK_EXTERNAL_CALLS)
if (checkExternalCalls && context is NativeGenerationState) {
if (context is NativeGenerationState && context.coverage.enabled) {
newEngine(context) { it.runPhase(CoveragePhase) }
}
if (context.config.memoryModel == MemoryModel.EXPERIMENTAL) {