Native: don't set allWarningsAsErrors = true in K2 mode
Related to KT-54123
This commit is contained in:
committed by
Space Team
parent
e6804d2601
commit
a22d7aea25
@@ -175,7 +175,6 @@ val compileKotlin: org.jetbrains.kotlin.gradle.tasks.KotlinCompile by tasks
|
|||||||
|
|
||||||
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
|
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
allWarningsAsErrors = true
|
|
||||||
freeCompilerArgs += listOf("-Xskip-prerelease-check")
|
freeCompilerArgs += listOf("-Xskip-prerelease-check")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,7 +77,6 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach
|
|||||||
"-opt-in=kotlin.ExperimentalUnsignedTypes",
|
"-opt-in=kotlin.ExperimentalUnsignedTypes",
|
||||||
"-Xskip-prerelease-check"
|
"-Xskip-prerelease-check"
|
||||||
)
|
)
|
||||||
allWarningsAsErrors = true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -24,9 +24,3 @@ dependencies {
|
|||||||
implementation project(":kotlin-native:Interop:Indexer")
|
implementation project(":kotlin-native:Interop:Indexer")
|
||||||
implementation project(":kotlin-native:Interop:StubGenerator")
|
implementation project(":kotlin-native:Interop:StubGenerator")
|
||||||
}
|
}
|
||||||
|
|
||||||
compileKotlin {
|
|
||||||
kotlinOptions {
|
|
||||||
allWarningsAsErrors=true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -50,7 +50,6 @@ tasks {
|
|||||||
"-opt-in=kotlin.ExperimentalUnsignedTypes",
|
"-opt-in=kotlin.ExperimentalUnsignedTypes",
|
||||||
"-Xskip-metadata-version-check"
|
"-Xskip-metadata-version-check"
|
||||||
)
|
)
|
||||||
allWarningsAsErrors = true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ sourceSets {
|
|||||||
|
|
||||||
compileCompilerKotlin {
|
compileCompilerKotlin {
|
||||||
kotlinOptions.jvmTarget = "1.8"
|
kotlinOptions.jvmTarget = "1.8"
|
||||||
kotlinOptions.allWarningsAsErrors=true
|
|
||||||
kotlinOptions.freeCompilerArgs += ['-opt-in=kotlin.RequiresOptIn', '-opt-in=org.jetbrains.kotlin.ir.ObsoleteDescriptorBasedAPI', '-Xskip-prerelease-check']
|
kotlinOptions.freeCompilerArgs += ['-opt-in=kotlin.RequiresOptIn', '-opt-in=org.jetbrains.kotlin.ir.ObsoleteDescriptorBasedAPI', '-Xskip-prerelease-check']
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user