[native] Rename Apple MacOS targets in simpleOsName

Use Arm64 suffix for Apple Arm arch and X64 for Intel X86_64
This commit is contained in:
Pavel Punegov
2021-05-21 13:06:23 +03:00
committed by Space
parent 825b77cc82
commit 48ef739525
@@ -169,7 +169,14 @@ open class HostManager(
@JvmStatic
fun simpleOsName(): String {
val hostOs = hostOs()
return if (hostOs == "osx") "macos" else hostOs
val arch = hostArch()
return when (hostOs) {
"osx" -> {
if (arch == "aarch64") "macosArm64"
else "macosX64"
}
else -> hostOs
}
}
val jniHostPlatformIncludeDir: String