Rohde Fischer
05/17/2023, 6:16 AM> Task :rfpath-okio:nativeTest SKIPPED
Skipping task ':rfpath-okio:nativeTest' as task onlyIf 'Task is enabled' is false.
description seems straight forward, except that - I cannot for the life of me find a way to enable it via google, and then the obvious underlying question, why is this even disabled to begin with 😕ephemient
05/17/2023, 6:48 AMRohde Fischer
05/17/2023, 8:50 AMephemient
05/17/2023, 6:22 PMephemient
05/17/2023, 6:25 PMkotlin {
linuxX64("native")
then I would recommend changing that to
kotlin {
linuxX64()
macosX64()
macosArm64()
although that will also require adjusting your source setsRohde Fischer
05/18/2023, 11:16 AMval hostOs = System.getProperty("os.name")
val isMingwX64 = hostOs.startsWith("Windows")
val nativeTarget = when {
hostOs == "Mac OS X" -> macosX64("native")
hostOs == "Linux" -> linuxX64("native")
isMingwX64 -> mingwX64("native")
else -> throw GradleException("Host OS is not supported in Kotlin/Native.")
}
but yeah, in that I do notice the lack of macosArm64Rohde Fischer
05/18/2023, 12:35 PMmacosArm64
, and indeed that made the difference, so now it works, thanks a lot for making me awareSebastian Sellmair [JB]
05/18/2023, 1:50 PMRohde Fischer
05/18/2023, 5:24 PMephemient
05/19/2023, 3:46 AMRohde Fischer
05/19/2023, 4:28 PMRohde Fischer
05/20/2023, 8:37 AMkotlin {
val hostOs = System.getProperty("os.name")
val isMingwX64 = hostOs.startsWith("Windows")
val nativeTarget = when {
hostOs == "Mac OS X" -> macosArm64("native")
// hostOs == "Mac OS X" -> macosX64("native")
hostOs == "Linux" -> linuxX64("native")
isMingwX64 -> mingwX64("native")
else -> throw GradleException("Host OS is not supported in Kotlin/Native.")
}
//...
}
you’d in the currently do:
kotlin {
linuxX64()
linuxArm64()
macosX64()
macosArm64()
mingwX64()
//...
}
and then ofc add stuff like jvm, js etc. per needed?Rohde Fischer
05/20/2023, 8:43 AMRohde Fischer
05/20/2023, 8:48 AMKotlinSourceSet with name 'nativeMain' not found
ephemient
05/20/2023, 9:13 AMRohde Fischer
05/20/2023, 9:15 AMRohde Fischer
05/20/2023, 11:35 AM