[Wasm] Enable warnings in stdlib and treat them as errors

This commit is contained in:
Svyatoslav Kuzmich
2023-01-20 18:46:29 +01:00
parent 72d9b8ddae
commit e109662cdc
+10 -3
View File
@@ -110,10 +110,17 @@ kotlin {
} }
} }
tasks.withType<KotlinCompile<*>>().configureEach { tasks.named("compileKotlinWasm", KotlinCompile::class) {
// TODO: fix all warnings, enable explicit API mode and -Werror // TODO: enable explicit API mode
kotlinOptions.suppressWarnings = true kotlinOptions.allWarningsAsErrors = true
}
tasks.named("compileTestKotlinWasm", KotlinCompile::class) {
// TODO: fix all warnings, enable and -Werror
kotlinOptions.suppressWarnings = true
}
tasks.withType<KotlinCompile<*>>().configureEach {
kotlinOptions.freeCompilerArgs += listOf( kotlinOptions.freeCompilerArgs += listOf(
"-Xallow-kotlin-package", "-Xallow-kotlin-package",
"-opt-in=kotlin.ExperimentalMultiplatform", "-opt-in=kotlin.ExperimentalMultiplatform",