[Build] Add ability to enable rendering of diagnostic names via local.properties

This commit is contained in:
Dmitriy Novozhilov
2022-02-10 15:03:50 +03:00
committed by teamcity
parent 3d48f9926f
commit e7e1aa1873
3 changed files with 10 additions and 1 deletions
+4 -1
View File
@@ -123,8 +123,8 @@ if (!project.hasProperty("versions.kotlin-native")) {
extra["versions.kotlin-native"] = "1.7.0-dev-1827"
}
val useJvmFir by extra(project.kotlinBuildProperties.useFir)
val renderDiagnosticNames by extra(project.kotlinBuildProperties.renderDiagnosticNames)
val irCompilerModules = arrayOf(
":compiler:ir.tree",
@@ -501,6 +501,9 @@ allprojects {
freeCompilerArgs += "-Xuse-fir"
freeCompilerArgs += "-Xabi-stability=stable"
}
if (renderDiagnosticNames) {
freeCompilerArgs += "-Xrender-internal-diagnostic-names"
}
}
}
+3
View File
@@ -62,6 +62,9 @@ org.gradle.vfs.watch=true
# Disable -Werror compiler flag
#kotlin.build.disable.werror=true
# Render internal diagostic names
#kotlin.build.render.diagnostic.names=true
# Enable bootstrap from local build of compiler (build from ./gradlew publish)
#bootstrap.local=true
# By default bootstrap compiler is located in ./build/repo directory
+3
View File
@@ -70,6 +70,9 @@ ext.configureFrontendIr = { Project project ->
if (project.kotlinBuildProperties.useFirForLibraries) {
freeCompilerArgs += "-Xuse-fir"
}
if (project.properties.renderDiagnosticNames) {
freeCompilerArgs += "-Xrender-internal-diagnostic-names"
}
}
}
}