Build: replace usages of kotlin.build.useIR with kotlinBuildProperties.useIR

This commit is contained in:
Dmitriy Novozhilov
2020-11-17 14:58:35 +03:00
parent c625a83ab5
commit 986bdd1099
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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 {