Skip to content

Commit dc8d586

Browse files
committed
Provide a Gradle property for using NativeBuildInfraExtension in IDEA
It is useful to be able to target all native targets supported by the library when using kotlinx libraries as Kotlin user projects for local testing of development builds of the Kotlin compiler.
1 parent 1640985 commit dc8d586

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main/src/kotlinx/team/infra/NativeMultiplatform.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ fun Project.configureNativeMultiplatform() {
2727
return@withPlugin
2828
}
2929

30-
val extension: Any = if (ideaActive)
30+
val useNativeBuildInfraInIdea = subproject.findProperty("useNativeBuildInfraInIdea")?.toString()?.toBoolean() ?: false
31+
val extension: Any = if (ideaActive && !useNativeBuildInfraInIdea)
3132
NativeIdeaInfraExtension(subproject, kotlin, "native")
3233
else
3334
NativeBuildInfraExtension(subproject, kotlin, "native")

0 commit comments

Comments
 (0)