[Build] Enable context receivers feature in :compiler:fir:fir2rir

This commit is contained in:
Dmitriy Novozhilov
2022-04-11 10:48:49 +04:00
committed by teamcity
parent 9d4d55b3ce
commit f5b581db00
+11 -1
View File
@@ -380,6 +380,10 @@ val projectsWithDisabledFirBootstrap = coreLibProjects + listOf(
":wasm:wasm.ir"
)
val projectsWithEnabledContextReceivers = listOf(
":compiler:fir:fir2ir"
)
val gradlePluginProjects = listOf(
":kotlin-gradle-plugin",
":kotlin-gradle-plugin-api",
@@ -534,7 +538,8 @@ allprojects {
kotlinOptions {
freeCompilerArgs = commonCompilerArgs + jvmCompilerArgs
if (useJvmFir && this@allprojects.path !in projectsWithDisabledFirBootstrap) {
val moduleName = this@allprojects.path
if (useJvmFir && moduleName !in projectsWithDisabledFirBootstrap) {
freeCompilerArgs += "-Xuse-fir"
freeCompilerArgs += "-Xabi-stability=stable"
if (useFirLT) {
@@ -547,6 +552,11 @@ allprojects {
if (renderDiagnosticNames) {
freeCompilerArgs += "-Xrender-internal-diagnostic-names"
}
if (moduleName in projectsWithEnabledContextReceivers) {
freeCompilerArgs += "-Xcontext-receivers"
freeCompilerArgs += "-Xdont-poison-binaries-with-prerelease"
}
}
}