Skip to content

Commit 4bc4b88

Browse files
Detect aarch64 as ARM and report it as a 64 bit architecture
1 parent 6665319 commit 4bc4b88

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/com/sun/jna/Platform.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ public static final boolean is64Bit() {
194194
|| "ppc64".equals(ARCH) || "ppc64le".equals(ARCH)
195195
|| "sparcv9".equals(ARCH)
196196
|| "mips64".equals(ARCH) || "mips64el".equals(ARCH)
197-
|| "amd64".equals(ARCH)) {
197+
|| "amd64".equals(ARCH)
198+
|| "aarch64".equals(ARCH)) {
198199
return true;
199200
}
200201
return Native.POINTER_SIZE == 8;
@@ -215,7 +216,7 @@ public static final boolean isPPC() {
215216
}
216217

217218
public static final boolean isARM() {
218-
return ARCH.startsWith("arm");
219+
return ARCH.startsWith("arm") || ARCH.startsWith("aarch");
219220
}
220221

221222
public static final boolean isSPARC() {

0 commit comments

Comments
 (0)