[Wasm] Enable warnings in stdlib and treat them as errors
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user