Build: suppress warnings for kotlin-stdlib-wasm

This commit is contained in:
Alexander Udalov
2021-02-18 12:35:06 +01:00
parent 9ce4decb73
commit aeb0906f2d
+4 -2
View File
@@ -68,6 +68,9 @@ kotlin {
} }
tasks.withType<KotlinCompile<*>>().configureEach { tasks.withType<KotlinCompile<*>>().configureEach {
// TODO: fix all warnings, enable explicit API mode and -Werror
kotlinOptions.suppressWarnings = true
kotlinOptions.freeCompilerArgs += listOf( kotlinOptions.freeCompilerArgs += listOf(
"-Xallow-kotlin-package", "-Xallow-kotlin-package",
"-Xallow-result-return-type", "-Xallow-result-return-type",
@@ -77,8 +80,7 @@ tasks.withType<KotlinCompile<*>>().configureEach {
"-Xinline-classes", "-Xinline-classes",
"-Xopt-in=kotlin.RequiresOptIn", "-Xopt-in=kotlin.RequiresOptIn",
"-Xopt-in=kotlin.ExperimentalUnsignedTypes", "-Xopt-in=kotlin.ExperimentalUnsignedTypes",
"-Xopt-in=kotlin.ExperimentalStdlibApi", "-Xopt-in=kotlin.ExperimentalStdlibApi"
"-Xexplicit-api=warning"
) )
} }