From ecd96e14c92cb0594dad5e45cfd2a15c10556525 Mon Sep 17 00:00:00 2001 From: Dmitry Savvinov Date: Fri, 11 Dec 2020 17:03:53 +0300 Subject: [PATCH] Use all participated compilations for source-sets platform detection even in non-HMPP --- idea/kotlin-gradle-tooling/src/KotlinMPPGradleModelBuilder.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idea/kotlin-gradle-tooling/src/KotlinMPPGradleModelBuilder.kt b/idea/kotlin-gradle-tooling/src/KotlinMPPGradleModelBuilder.kt index 3e38b88f4b1..fde454631ee 100644 --- a/idea/kotlin-gradle-tooling/src/KotlinMPPGradleModelBuilder.kt +++ b/idea/kotlin-gradle-tooling/src/KotlinMPPGradleModelBuilder.kt @@ -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) }