Skip to content

Commit 84907cf

Browse files
cypressiousSpace Team
authored andcommitted
[FIR] Only enable KMP separate compilation in KMP compilations
#KT-80349 Fixed
1 parent 1180951 commit 84907cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/CommonCompilerArgumentsConfigurator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ open class CommonCompilerArgumentsConfigurator {
4040
put(AnalysisFlags.allowFullyQualifiedNameInKClass, true)
4141
put(AnalysisFlags.dontWarnOnErrorSuppression, dontWarnOnErrorSuppression)
4242
put(AnalysisFlags.lenientMode, lenientMode)
43-
put(AnalysisFlags.hierarchicalMultiplatformCompilation, separateKmpCompilationScheme)
43+
put(AnalysisFlags.hierarchicalMultiplatformCompilation, separateKmpCompilationScheme && multiPlatform)
4444
fillWarningLevelMap(arguments, collector)
4545
ReturnValueCheckerMode.fromString(returnValueChecker)?.also { put(AnalysisFlags.returnValueCheckerMode, it) }
4646
?: collector.report(

0 commit comments

Comments
 (0)