[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user