From e4ebeec27525636f0263a3707b071df4edc346ad Mon Sep 17 00:00:00 2001 From: Dmitriy Novozhilov Date: Mon, 5 Apr 2021 17:06:08 +0300 Subject: [PATCH] Build: explicitly disable -Xuse-fir arg for some modules --- build.gradle.kts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 65fe4cf9b86..775b8ee1d07 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -355,6 +355,12 @@ val coreLibProjects = listOfNotNull( ":kotlin-reflect" ) +val projectsWithDisabledFirBootstrap = coreLibProjects + listOf( + ":kotlin-gradle-plugin", + ":kotlinx-metadata", + ":kotlinx-metadata-jvm" +) + val gradlePluginProjects = listOf( ":kotlin-gradle-plugin", ":kotlin-gradle-plugin-api", @@ -469,7 +475,7 @@ allprojects { useIR = true } - if (useJvmFir) { + if (useJvmFir && this@allprojects.name !in projectsWithDisabledFirBootstrap) { freeCompilerArgs += "-Xuse-fir" freeCompilerArgs += "-Xabi-stability=stable" }