Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Plugin not respecting arm64 architectures #468

Open
pariser opened this issue Mar 22, 2022 · 0 comments
Open

Plugin not respecting arm64 architectures #468

pariser opened this issue Mar 22, 2022 · 0 comments

Comments

@pariser
Copy link

pariser commented Mar 22, 2022

Despite the fact that Graal has released builds for arm64 as of 21.0, it looks like this plugin is not respecting my architecture and always defaulting to amd64

private String getArchitecture() {
switch (Platform.architecture()) {
case AMD64:
return "amd64";
default:
throw new IllegalStateException("No GraalVM support for " + Platform.architecture());
}
}

Note that the presence of the substring "64" does not differentiate between amd64 and aarch64 (arm64).

public static Architecture architecture() {
String arch = System.getProperty("os.arch");
if (arch.contains("64")) {
return Architecture.AMD64;
}
return Architecture.UNKNOWN;
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant