From ded5875a575cf012b77fb7b4eafaeabc86aa6426 Mon Sep 17 00:00:00 2001 From: Darius Maitia Date: Fri, 29 Dec 2023 11:26:55 +0100 Subject: [PATCH] fix(jvm target): adding check for amd64 --- zenoh-java/src/jvmMain/kotlin/io/zenoh/Zenoh.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zenoh-java/src/jvmMain/kotlin/io/zenoh/Zenoh.kt b/zenoh-java/src/jvmMain/kotlin/io/zenoh/Zenoh.kt index 874d3d23..5ed58f09 100644 --- a/zenoh-java/src/jvmMain/kotlin/io/zenoh/Zenoh.kt +++ b/zenoh-java/src/jvmMain/kotlin/io/zenoh/Zenoh.kt @@ -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") }