Skip to content

Commit

Permalink
fix(jvm target): adding check for amd64 (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
DariusIMP authored Dec 29, 2023
1 parent 0a0bcc4 commit 68eccda
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zenoh-java/src/jvmMain/kotlin/io/zenoh/Zenoh.kt
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,18 @@ internal actual class Zenoh private actual constructor() {

val target = when {
osName.contains("win") -> when {
osArch.contains("x86_64") -> Target.WINDOWS_X86_64_MSVC
osArch.contains("x86_64") || osArch.contains("amd64") -> Target.WINDOWS_X86_64_MSVC
else -> throw UnsupportedOperationException("Unsupported architecture: $osArch")
}

osName.contains("mac") -> when {
osArch.contains("x86_64") -> Target.APPLE_X86_64
osArch.contains("x86_64") || osArch.contains("amd64") -> Target.APPLE_X86_64
osArch.contains("aarch64") -> Target.APPLE_AARCH64
else -> throw UnsupportedOperationException("Unsupported architecture: $osArch")
}

osName.contains("nix") || osName.contains("nux") || osName.contains("aix") -> when {
osArch.contains("x86_64") -> Target.LINUX_X86_64
osArch.contains("x86_64") || osArch.contains("amd64") -> Target.LINUX_X86_64
osArch.contains("aarch64") -> Target.LINUX_AARCH64
else -> throw UnsupportedOperationException("Unsupported architecture: $osArch")
}
Expand Down

0 comments on commit 68eccda

Please sign in to comment.