bind/java: Throw in case of yet unsupported Linux on arm64

This commit is contained in:
Diego Reis
2025-06-04 08:34:34 -03:00
parent b50dcd493a
commit 3a17bf7186

View File

@@ -68,7 +68,8 @@ public final class LimboDB implements AutoCloseable {
// TODO: add support for arm64 on Linux
if (osName.contains("linux")) {
if (osArch.contains("aarch64") || osArch.contains("arm64")) {
return LINUX_X86;
throw new UnsupportedOperationException(
"ARM64 architecture is not supported on Linux yet");
} else if (osArch.contains("x86_64") || osArch.contains("amd64")) {
return LINUX_X86;
}