File tree Expand file tree Collapse file tree 1 file changed +15
-10
lines changed
examples/kotlin-multiplatform Expand file tree Collapse file tree 1 file changed +15
-10
lines changed Original file line number Diff line number Diff line change 1- import org.jetbrains.kotlin.konan.target.HostManager
2- import org.jetbrains.kotlin.konan.target.KonanTarget
31import kotlinx.benchmark.gradle.JsBenchmarksExecutor
42
53plugins {
@@ -23,10 +21,14 @@ kotlin {
2321 compilations. create(" builtInExecutor" ) { associateWith(compilations. main) }
2422 }
2523 wasm(' wasmJs' ) { d8() }
26- if (HostManager . host == KonanTarget . MACOS_X64 . INSTANCE ) macosX64(' native' )
27- if (HostManager . host == KonanTarget . MACOS_ARM64 . INSTANCE ) macosArm64(' native' )
28- if (HostManager . hostIsLinux) linuxX64(' native' )
29- if (HostManager . hostIsMingw) mingwX64(' native' )
24+
25+ // Native targets
26+ macosX64()
27+ macosArm64()
28+ linuxX64()
29+ mingwX64()
30+
31+ applyDefaultHierarchyTemplate()
3032
3133 sourceSets. configureEach {
3234 languageSettings {
@@ -50,9 +52,7 @@ kotlin {
5052 jsBuiltInExecutor. dependsOn(it)
5153 }
5254
53- nativeMain {
54- dependsOn(commonMain)
55- }
55+ nativeMain {}
5656 }
5757}
5858
@@ -121,6 +121,11 @@ benchmark {
121121 jsBenchmarksExecutor = JsBenchmarksExecutor.BuiltIn
122122 }
123123 register(" wasmJs" )
124- register(" native" )
124+
125+ // Native targets
126+ register(" macosX64" )
127+ register(" macosArm64" )
128+ register(" linuxX64" )
129+ register(" mingwX64" )
125130 }
126131}
You can’t perform that action at this time.
0 commit comments