Use all participated compilations for source-sets platform detection even in non-HMPP

This commit is contained in:
Dmitry Savvinov
2020-12-11 17:03:53 +03:00
parent 09286504b7
commit ecd96e14c9
@@ -826,7 +826,7 @@ class KotlinMPPGradleModelBuilder : ModelBuilderService {
?: if (!isHMPPEnabled && sourceSet.name == KotlinSourceSet.COMMON_TEST_SOURCE_SET_NAME) true else null)?.let { isTest ->
sourceSet.isTestModule = isTest
}
(if (isHMPPEnabled) allSourceSetToCompilations[sourceSet] else compiledSourceSetToCompilations[sourceSet])?.let { compilations ->
(allSourceSetToCompilations[sourceSet])?.let { compilations ->
val platforms = compilations.map { it.platform }
sourceSet.actualPlatforms.addSimplePlatforms(platforms)
}