Skip to content

Commit

Permalink
Detect aarch64 as ARM and report it as a 64 bit architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasblaesing committed Sep 20, 2019
1 parent 6665319 commit 4bc4b88
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/com/sun/jna/Platform.java
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ public static final boolean is64Bit() {
|| "ppc64".equals(ARCH) || "ppc64le".equals(ARCH)
|| "sparcv9".equals(ARCH)
|| "mips64".equals(ARCH) || "mips64el".equals(ARCH)
|| "amd64".equals(ARCH)) {
|| "amd64".equals(ARCH)
|| "aarch64".equals(ARCH)) {
return true;
}
return Native.POINTER_SIZE == 8;
Expand All @@ -215,7 +216,7 @@ public static final boolean isPPC() {
}

public static final boolean isARM() {
return ARCH.startsWith("arm");
return ARCH.startsWith("arm") || ARCH.startsWith("aarch");
}

public static final boolean isSPARC() {
Expand Down

0 comments on commit 4bc4b88

Please sign in to comment.