FIR: Implement build properties for LightTree and tight IC cycle

This commit is contained in:
Ilya Chernikov
2022-04-04 13:43:12 +02:00
committed by teamcity
parent 82c959c4be
commit 6564632b58
2 changed files with 14 additions and 0 deletions
+8
View File
@@ -123,6 +123,8 @@ if (!project.hasProperty("versions.kotlin-native")) {
}
val useJvmFir by extra(project.kotlinBuildProperties.useFir)
val useFirLT by extra(project.kotlinBuildProperties.useFirWithLightTree)
val useFirIC by extra(project.kotlinBuildProperties.useFirTightIC)
val renderDiagnosticNames by extra(project.kotlinBuildProperties.renderDiagnosticNames)
val irCompilerModules = arrayOf(
@@ -505,6 +507,12 @@ allprojects {
if (useJvmFir && this@allprojects.path !in projectsWithDisabledFirBootstrap) {
freeCompilerArgs += "-Xuse-fir"
freeCompilerArgs += "-Xabi-stability=stable"
if (useFirLT) {
freeCompilerArgs += "-Xuse-fir-lt"
}
if (useFirIC) {
freeCompilerArgs += "-Xuse-fir-ic"
}
}
if (renderDiagnosticNames) {
freeCompilerArgs += "-Xrender-internal-diagnostic-names"
@@ -54,3 +54,9 @@ val KotlinBuildProperties.junit5NumberOfThreadsForParallelExecution: Int?
val KotlinBuildProperties.publishGradlePluginsJavadoc: Boolean
get() = getBoolean("kotlin.build.gradle.publish.javadocs", false)
val KotlinBuildProperties.useFirWithLightTree: Boolean
get() = getBoolean("kotlin.build.useFirLT")
val KotlinBuildProperties.useFirTightIC: Boolean
get() = getBoolean("kotlin.build.useFirIC")