Build: remove obsolete compiler arguments

These compiler arguments enable features which are enabled by default in
the current Kotlin anyway.

The only exception is in :compiler:cli which uses an old language
version.
This commit is contained in:
Alexander Udalov
2021-07-25 19:15:19 +02:00
parent 707e1c7f8d
commit 91c39ed01c
25 changed files with 20 additions and 87 deletions
+1 -3
View File
@@ -137,10 +137,8 @@ kotlin {
tasks.withType<KotlinCompile<*>>().configureEach {
kotlinOptions.freeCompilerArgs += listOf(
"-Xallow-kotlin-package",
"-Xallow-result-return-type",
"-Xopt-in=kotlin.ExperimentalMultiplatform",
"-Xopt-in=kotlin.contracts.ExperimentalContracts",
"-Xinline-classes",
"-Xopt-in=kotlin.RequiresOptIn",
"-Xopt-in=kotlin.ExperimentalUnsignedTypes",
"-Xopt-in=kotlin.ExperimentalStdlibApi"
@@ -169,4 +167,4 @@ val packFullRuntimeKLib by tasks.registering(Jar::class) {
from(buildDir.resolve("classes/kotlin/js/main"))
destinationDirectory.set(rootProject.buildDir.resolve("js-ir-runtime"))
archiveFileName.set("full-runtime.klib")
}
}