Use all participated compilations for source-sets platform detection even in non-HMPP
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user