Build: replace usages of kotlin.build.useIR with kotlinBuildProperties.useIR
This commit is contained in:
+1
-1
@@ -194,7 +194,7 @@ if (!project.hasProperty("versions.kotlin-native")) {
|
|||||||
val intellijUltimateEnabled by extra(project.kotlinBuildProperties.intellijUltimateEnabled)
|
val intellijUltimateEnabled by extra(project.kotlinBuildProperties.intellijUltimateEnabled)
|
||||||
val effectSystemEnabled by extra(project.getBooleanProperty("kotlin.compiler.effectSystemEnabled") ?: false)
|
val effectSystemEnabled by extra(project.getBooleanProperty("kotlin.compiler.effectSystemEnabled") ?: false)
|
||||||
val newInferenceEnabled by extra(project.getBooleanProperty("kotlin.compiler.newInferenceEnabled") ?: 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
|
val intellijSeparateSdks = project.getBooleanProperty("intellijSeparateSdks") ?: false
|
||||||
|
|
||||||
|
|||||||
@@ -198,7 +198,7 @@ ext.configureLegacyPublishing = { Project project ->
|
|||||||
ext.configureJvmIrBackend = { Project project ->
|
ext.configureJvmIrBackend = { Project project ->
|
||||||
project.tasks.withType(KotlinCompile.class) { task ->
|
project.tasks.withType(KotlinCompile.class) { task ->
|
||||||
task.kotlinOptions {
|
task.kotlinOptions {
|
||||||
if (CommonUtilKt.getBooleanProperty(project, "kotlin.build.useIRForLibraries")) {
|
if (project.kotlinBuildProperties.useIRForLibraries) {
|
||||||
useIR = true
|
useIR = true
|
||||||
freeCompilerArgs += ["-Xir-binary-with-stable-abi"]
|
freeCompilerArgs += ["-Xir-binary-with-stable-abi"]
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user