Do not reset freeCompilerArgs for some kotlin-native modules
Otherwise common compiler arguments which are set for all modules in the project in `buildSrc/src/main/kotlin/common-configuration.gradle.kts` are not applied. The most interesting of those are `-Xuse-k2` (if K2 is enabled) and `-Xjvm-default=all`.
This commit is contained in:
@@ -73,9 +73,8 @@ sourceSets.main.get().java.srcDir("src/jvm/kotlin")
|
||||
|
||||
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
|
||||
kotlinOptions {
|
||||
freeCompilerArgs = listOf(
|
||||
freeCompilerArgs += listOf(
|
||||
"-opt-in=kotlin.ExperimentalUnsignedTypes",
|
||||
"-opt-in=kotlin.RequiresOptIn",
|
||||
"-Xskip-prerelease-check"
|
||||
)
|
||||
allWarningsAsErrors = true
|
||||
|
||||
Reference in New Issue
Block a user