[Build] Enable context receivers feature in :compiler:fir:fir2rir
This commit is contained in:
committed by
teamcity
parent
9d4d55b3ce
commit
f5b581db00
+11
-1
@@ -380,6 +380,10 @@ val projectsWithDisabledFirBootstrap = coreLibProjects + listOf(
|
|||||||
":wasm:wasm.ir"
|
":wasm:wasm.ir"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
val projectsWithEnabledContextReceivers = listOf(
|
||||||
|
":compiler:fir:fir2ir"
|
||||||
|
)
|
||||||
|
|
||||||
val gradlePluginProjects = listOf(
|
val gradlePluginProjects = listOf(
|
||||||
":kotlin-gradle-plugin",
|
":kotlin-gradle-plugin",
|
||||||
":kotlin-gradle-plugin-api",
|
":kotlin-gradle-plugin-api",
|
||||||
@@ -534,7 +538,8 @@ allprojects {
|
|||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
freeCompilerArgs = commonCompilerArgs + jvmCompilerArgs
|
freeCompilerArgs = commonCompilerArgs + jvmCompilerArgs
|
||||||
|
|
||||||
if (useJvmFir && this@allprojects.path !in projectsWithDisabledFirBootstrap) {
|
val moduleName = this@allprojects.path
|
||||||
|
if (useJvmFir && moduleName !in projectsWithDisabledFirBootstrap) {
|
||||||
freeCompilerArgs += "-Xuse-fir"
|
freeCompilerArgs += "-Xuse-fir"
|
||||||
freeCompilerArgs += "-Xabi-stability=stable"
|
freeCompilerArgs += "-Xabi-stability=stable"
|
||||||
if (useFirLT) {
|
if (useFirLT) {
|
||||||
@@ -547,6 +552,11 @@ allprojects {
|
|||||||
if (renderDiagnosticNames) {
|
if (renderDiagnosticNames) {
|
||||||
freeCompilerArgs += "-Xrender-internal-diagnostic-names"
|
freeCompilerArgs += "-Xrender-internal-diagnostic-names"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (moduleName in projectsWithEnabledContextReceivers) {
|
||||||
|
freeCompilerArgs += "-Xcontext-receivers"
|
||||||
|
freeCompilerArgs += "-Xdont-poison-binaries-with-prerelease"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user