Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant