Mark expect/actual classifiers as experimental
^KT-61573 Fixed Review: https://jetbrains.team/p/kt/reviews/11969/timeline Tests: - MultiPlatformIntegrationTestGenerated - CliTestGenerated - MultiPlatformIntegrationTestGenerated - DiagnosticTestGenerated.Multiplatform - FirLightTreeOldFrontendDiagnosticsTestGenerated Also add -Xexpect-actual-classes flag to all necessary ./libraries/* modules Otherwise compilation of those modules failes because of `-Werror`
This commit is contained in:
@@ -110,6 +110,7 @@ kotlin {
|
||||
// providing exhaustive list of args here
|
||||
freeCompilerArgs = listOf(
|
||||
"-Xallow-kotlin-package",
|
||||
"-Xexpect-actual-classes",
|
||||
"-Xmultifile-parts-inherit",
|
||||
"-Xuse-14-inline-classes-mangling-scheme",
|
||||
"-Xbuiltins-from-sources",
|
||||
@@ -168,6 +169,7 @@ kotlin {
|
||||
kotlinOptions {
|
||||
freeCompilerArgs += listOf(
|
||||
"-Xallow-kotlin-package", // TODO: maybe rename test packages
|
||||
"-Xexpect-actual-classes",
|
||||
)
|
||||
if (kotlinBuildProperties.useFir) {
|
||||
freeCompilerArgs += "-Xuse-k2"
|
||||
@@ -256,6 +258,7 @@ kotlin {
|
||||
main.apply {
|
||||
kotlinOptions {
|
||||
freeCompilerArgs += "-Xir-module-name=kotlin"
|
||||
freeCompilerArgs += "-Xexpect-actual-classes"
|
||||
|
||||
if (!kotlinBuildProperties.disableWerror) {
|
||||
allWarningsAsErrors = true
|
||||
|
||||
@@ -63,6 +63,7 @@ tasks.compileKotlin {
|
||||
kotlinOptions {
|
||||
freeCompilerArgs += listOf(
|
||||
"-Xallow-kotlin-package",
|
||||
"-Xexpect-actual-classes",
|
||||
"-Xmulti-platform",
|
||||
"-opt-in=kotlin.RequiresOptIn",
|
||||
"-opt-in=kotlin.contracts.ExperimentalContracts",
|
||||
|
||||
Reference in New Issue
Block a user