Skip to content

Commit

Permalink
Apply Native IR transformations only if Kotlin version in the project…
Browse files Browse the repository at this point in the history
… is at least 1.9.20 (#372)
  • Loading branch information
mvicsokolova authored Nov 24, 2023
1 parent aedae16 commit 0a4ff49
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ private fun Project.applyAtomicfuCompilerPlugin() {
extensions.getByType(AtomicfuKotlinGradleSubplugin.AtomicfuKotlinGradleExtension::class.java).apply {
isJsIrTransformationEnabled = rootProject.getBooleanProperty(ENABLE_JS_IR_TRANSFORMATION)
isJvmIrTransformationEnabled = rootProject.getBooleanProperty(ENABLE_JVM_IR_TRANSFORMATION)
isNativeIrTransformationEnabled = rootProject.getBooleanProperty(ENABLE_NATIVE_IR_TRANSFORMATION)
if (kotlinVersion.atLeast(1, 9, 20)) {
// Native IR transformation is available since Kotlin 1.9.20
isNativeIrTransformationEnabled = rootProject.getBooleanProperty(ENABLE_NATIVE_IR_TRANSFORMATION)
}
}
} else {
// for KGP >= 1.6.20 && KGP <= 1.7.20:
Expand Down

0 comments on commit 0a4ff49

Please sign in to comment.