[Build] Add ability to enable rendering of diagnostic names via local.properties
This commit is contained in:
committed by
teamcity
parent
3d48f9926f
commit
e7e1aa1873
+4
-1
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -70,6 +70,9 @@ ext.configureFrontendIr = { Project project ->
|
||||
if (project.kotlinBuildProperties.useFirForLibraries) {
|
||||
freeCompilerArgs += "-Xuse-fir"
|
||||
}
|
||||
if (project.properties.renderDiagnosticNames) {
|
||||
freeCompilerArgs += "-Xrender-internal-diagnostic-names"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user