Check for sun.arch.data.model property when determining architecture on armv8

This commit is contained in:
hedgecrw85 2019-08-28 20:16:47 -05:00
parent 606657e45a
commit 04d1bb2ae8
1 changed files with 2 additions and 1 deletions

View File

@ -152,7 +152,8 @@ public final class SerialPort
if (libraryPath.isEmpty())
libraryPath = "Linux/armv6";
else if (libraryPath.contains("Linux/armv8"))
libraryPath += (System.getProperty("os.arch").indexOf("64") >= 0) ? "_64" : "_32";
libraryPath += ((System.getProperty("sun.arch.data.model") != null) ? ("_" + System.getProperty("sun.arch.data.model")) :
((System.getProperty("os.arch").indexOf("64") >= 0) ? "_64" : "_32"));
else
{
try