We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 435860e commit f5ac44cCopy full SHA for f5ac44c
integration-testing/examples/mpp-sample/build.gradle.kts
@@ -28,7 +28,18 @@ repositories {
28
29
kotlin {
30
jvm()
31
- macosX64("native")
+
32
+ val hostOs = System.getProperty("os.name")
33
+ val isArm64 = System.getProperty("os.arch") == "aarch64"
34
+ val isMingwX64 = hostOs.startsWith("Windows")
35
+ val nativeTarget = when {
36
+ hostOs == "Mac OS X" && isArm64 -> macosArm64("native")
37
+ hostOs == "Mac OS X" && !isArm64 -> macosX64("native")
38
+ hostOs == "Linux" && isArm64 -> linuxArm64("native")
39
+ hostOs == "Linux" && !isArm64 -> linuxX64("native")
40
+ isMingwX64 -> mingwX64("native")
41
+ else -> throw GradleException("Host OS is not supported in Kotlin/Native.")
42
+ }
43
44
sourceSets {
45
val commonMain by getting
0 commit comments