[Build] Use -Xuse-k2 flag instead of -Xuse-fir
This commit is contained in:
committed by
teamcity
parent
7c19f3b1ca
commit
c62257bbab
@@ -163,7 +163,7 @@ fun Project.configureKotlinCompilationOptions() {
|
|||||||
freeCompilerArgs += jvmCompilerArgs
|
freeCompilerArgs += jvmCompilerArgs
|
||||||
|
|
||||||
if (useJvmFir && project.path !in projectsWithDisabledFirBootstrap) {
|
if (useJvmFir && project.path !in projectsWithDisabledFirBootstrap) {
|
||||||
freeCompilerArgs += "-Xuse-fir"
|
freeCompilerArgs += "-Xuse-k2"
|
||||||
freeCompilerArgs += "-Xabi-stability=stable"
|
freeCompilerArgs += "-Xabi-stability=stable"
|
||||||
if (useFirLT) {
|
if (useFirLT) {
|
||||||
freeCompilerArgs += "-Xuse-fir-lt"
|
freeCompilerArgs += "-Xuse-fir-lt"
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ ext.configureFrontendIr = { Project project ->
|
|||||||
project.tasks.withType(KotlinCompile.class) { task ->
|
project.tasks.withType(KotlinCompile.class) { task ->
|
||||||
task.kotlinOptions {
|
task.kotlinOptions {
|
||||||
if (project.kotlinBuildProperties.useFirForLibraries) {
|
if (project.kotlinBuildProperties.useFirForLibraries) {
|
||||||
freeCompilerArgs += "-Xuse-fir"
|
freeCompilerArgs += "-Xuse-k2"
|
||||||
allWarningsAsErrors = false
|
allWarningsAsErrors = false
|
||||||
}
|
}
|
||||||
if (project.properties.renderDiagnosticNames) {
|
if (project.properties.renderDiagnosticNames) {
|
||||||
|
|||||||
Reference in New Issue
Block a user