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:
Alexander Udalov
2022-09-20 01:45:11 +02:00
committed by Space
parent b1a26f7439
commit c410c5d3cd
8 changed files with 22 additions and 10 deletions
@@ -46,9 +46,9 @@ dependencies {
tasks {
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf(
"-opt-in=kotlin.ExperimentalUnsignedTypes",
"-Xskip-metadata-version-check"
freeCompilerArgs += listOf(
"-opt-in=kotlin.ExperimentalUnsignedTypes",
"-Xskip-metadata-version-check"
)
allWarningsAsErrors = true
}