File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
src/test/resources/templates/kotlin-multiplatform Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
- import org.jetbrains.kotlin.gradle.dsl.*
2
1
import org.jetbrains.kotlin.konan.target.*
3
2
4
3
plugins {
@@ -33,7 +32,8 @@ val nativeTargetName
33
32
project.getSystemProperty(" idea.active" ) == " true" -> " native"
34
33
HostManager .hostIsLinux -> " linuxX64"
35
34
HostManager .hostIsMingw -> " mingwX64"
36
- HostManager .hostIsMac -> " macosX64"
35
+ HostManager .host == KonanTarget .MACOS_X64 -> " macosX64"
36
+ HostManager .host == KonanTarget .MACOS_ARM64 -> " macosArm64"
37
37
else -> error(" Unknown host: ${HostManager .host} " )
38
38
}
39
39
Original file line number Diff line number Diff line change
1
+ import org.jetbrains.kotlin.konan.target.KonanTarget
2
+ import org.jetbrains.kotlin.konan.target.HostManager
3
+
1
4
kotlin {
2
5
jvm {
3
6
compilations. all {
@@ -9,9 +12,10 @@ kotlin {
9
12
nodejs()
10
13
}
11
14
12
- if (org.jetbrains.kotlin.konan.target.HostManager . hostIsLinux) linuxX64(' native' )
13
- if (org.jetbrains.kotlin.konan.target.HostManager . hostIsMingw) mingwX64(' native' )
14
- if (org.jetbrains.kotlin.konan.target.HostManager . hostIsMac) macosX64(' native' )
15
+ if (HostManager . hostIsLinux) linuxX64(' native' )
16
+ if (HostManager . hostIsMingw) mingwX64(' native' )
17
+ if (HostManager . host == KonanTarget . MACOS_X64 . INSTANCE ) macosX64(' native' )
18
+ if (HostManager . host == KonanTarget . MACOS_ARM64 . INSTANCE ) macosArm64(' native' )
15
19
16
20
sourceSets {
17
21
commonMain {
@@ -30,7 +34,7 @@ kotlin {
30
34
}
31
35
}
32
36
nativeMain {
33
- dependsOn commonMain
37
+ dependsOn( commonMain)
34
38
dependencies {
35
39
implementation(benchmarkRuntimeNative)
36
40
}
You can’t perform that action at this time.
0 commit comments