[K/N] Fix coverage phase condition
This commit is contained in:
committed by
Space Team
parent
b368b78faa
commit
d87f3cb9cd
+1
-2
@@ -171,8 +171,7 @@ internal fun <T : BitcodePostProcessingContext> PhaseEngine<T>.runBitcodePostPro
|
|||||||
null -> {}
|
null -> {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
val checkExternalCalls = context.config.configuration.getBoolean(KonanConfigKeys.CHECK_EXTERNAL_CALLS)
|
if (context is NativeGenerationState && context.coverage.enabled) {
|
||||||
if (checkExternalCalls && context is NativeGenerationState) {
|
|
||||||
newEngine(context) { it.runPhase(CoveragePhase) }
|
newEngine(context) { it.runPhase(CoveragePhase) }
|
||||||
}
|
}
|
||||||
if (context.config.memoryModel == MemoryModel.EXPERIMENTAL) {
|
if (context.config.memoryModel == MemoryModel.EXPERIMENTAL) {
|
||||||
|
|||||||
Reference in New Issue
Block a user