Build: pass -Xexpect-actual-classes to some libraries compile tasks

To suppress the warning introduced in KT-61573.
This commit is contained in:
Alexander Udalov
2023-09-11 15:52:36 +02:00
committed by Space Team
parent d9da3973bb
commit 909f32ed54
5 changed files with 13 additions and 5 deletions
+3 -1
View File
@@ -79,7 +79,8 @@ kotlin {
kotlinOptions {
freeCompilerArgs = listOf(
"-Xallow-kotlin-package",
"-module-name", "kotlin-stdlib-common"
"-module-name", "kotlin-stdlib-common",
"-Xexpect-actual-classes",
)
}
// workaround for compiling legacy MPP metadata, remove when this compilation is not needed anymore
@@ -201,6 +202,7 @@ kotlin {
freeCompilerArgs += listOf(
"-Xallow-kotlin-package",
"-Xforce-deprecated-legacy-compiler-usage",
"-Xexpect-actual-classes",
)
}
compileTaskProvider.configure {