File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
examples/kotlin-multiplatform Expand file tree Collapse file tree 1 file changed +12
-7
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
3
1
import kotlinx.benchmark.gradle.JsBenchmarksExecutor
4
2
5
3
plugins {
@@ -23,10 +21,12 @@ kotlin {
23
21
compilations. create(" builtInExecutor" ) { associateWith(compilations. main) }
24
22
}
25
23
wasm(' wasmJs' ) { d8() }
26
- if (HostManager . host == KonanTarget . MACOS_X64 . INSTANCE ) macosX64(' konan' )
27
- if (HostManager . host == KonanTarget . MACOS_ARM64 . INSTANCE ) macosArm64(' konan' )
28
- if (HostManager . hostIsLinux) linuxX64(' konan' )
29
- if (HostManager . hostIsMingw) mingwX64(' konan' )
24
+
25
+ // Native targets
26
+ macosX64()
27
+ macosArm64()
28
+ linuxX64()
29
+ mingwX64()
30
30
31
31
applyDefaultHierarchyTemplate()
32
32
@@ -121,6 +121,11 @@ benchmark {
121
121
jsBenchmarksExecutor = JsBenchmarksExecutor.BuiltIn
122
122
}
123
123
register(" wasmJs" )
124
- register(" konan" )
124
+
125
+ // Native targets
126
+ register(" macosX64" )
127
+ register(" macosArm64" )
128
+ register(" linuxX64" )
129
+ register(" mingwX64" )
125
130
}
126
131
}
You can’t perform that action at this time.
0 commit comments