Native: don't set allWarningsAsErrors = true in K2 mode

Related to KT-54123
This commit is contained in:
Mikhail Glukhikh
2022-09-28 13:23:39 +02:00
committed by Space Team
parent e6804d2601
commit a22d7aea25
5 changed files with 0 additions and 10 deletions
@@ -175,7 +175,6 @@ val compileKotlin: org.jetbrains.kotlin.gradle.tasks.KotlinCompile by tasks
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
allWarningsAsErrors = true
freeCompilerArgs += listOf("-Xskip-prerelease-check")
}
}
@@ -77,7 +77,6 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach
"-opt-in=kotlin.ExperimentalUnsignedTypes",
"-Xskip-prerelease-check"
)
allWarningsAsErrors = true
}
}
-6
View File
@@ -24,9 +24,3 @@ dependencies {
implementation project(":kotlin-native:Interop:Indexer")
implementation project(":kotlin-native:Interop:StubGenerator")
}
compileKotlin {
kotlinOptions {
allWarningsAsErrors=true
}
}
@@ -50,7 +50,6 @@ tasks {
"-opt-in=kotlin.ExperimentalUnsignedTypes",
"-Xskip-metadata-version-check"
)
allWarningsAsErrors = true
}
}
@@ -33,7 +33,6 @@ sourceSets {
compileCompilerKotlin {
kotlinOptions.jvmTarget = "1.8"
kotlinOptions.allWarningsAsErrors=true
kotlinOptions.freeCompilerArgs += ['-opt-in=kotlin.RequiresOptIn', '-opt-in=org.jetbrains.kotlin.ir.ObsoleteDescriptorBasedAPI', '-Xskip-prerelease-check']
}