From 986bdd1099b4ea563bacad26a87a228c456804d8 Mon Sep 17 00:00:00 2001 From: Dmitriy Novozhilov Date: Tue, 17 Nov 2020 14:58:35 +0300 Subject: [PATCH] Build: replace usages of `kotlin.build.useIR` with `kotlinBuildProperties.useIR` --- build.gradle.kts | 2 +- libraries/commonConfiguration.gradle | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index ceee110e4db..5c1fa82d816 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -194,7 +194,7 @@ if (!project.hasProperty("versions.kotlin-native")) { val intellijUltimateEnabled by extra(project.kotlinBuildProperties.intellijUltimateEnabled) val effectSystemEnabled by extra(project.getBooleanProperty("kotlin.compiler.effectSystemEnabled") ?: false) val newInferenceEnabled by extra(project.getBooleanProperty("kotlin.compiler.newInferenceEnabled") ?: false) -val useJvmIrBackend by extra(project.getBooleanProperty("kotlin.build.useIR") ?: false) +val useJvmIrBackend by extra(project.kotlinBuildProperties.useIR) val intellijSeparateSdks = project.getBooleanProperty("intellijSeparateSdks") ?: false diff --git a/libraries/commonConfiguration.gradle b/libraries/commonConfiguration.gradle index d62878cac3e..23357b2fe3c 100644 --- a/libraries/commonConfiguration.gradle +++ b/libraries/commonConfiguration.gradle @@ -198,7 +198,7 @@ ext.configureLegacyPublishing = { Project project -> ext.configureJvmIrBackend = { Project project -> project.tasks.withType(KotlinCompile.class) { task -> task.kotlinOptions { - if (CommonUtilKt.getBooleanProperty(project, "kotlin.build.useIRForLibraries")) { + if (project.kotlinBuildProperties.useIRForLibraries) { useIR = true freeCompilerArgs += ["-Xir-binary-with-stable-abi"] } else {