Check for sun.arch.data.model property when determining architecture on armv8
This commit is contained in:
parent
606657e45a
commit
04d1bb2ae8
|
@ -152,7 +152,8 @@ public final class SerialPort
|
||||||
if (libraryPath.isEmpty())
|
if (libraryPath.isEmpty())
|
||||||
libraryPath = "Linux/armv6";
|
libraryPath = "Linux/armv6";
|
||||||
else if (libraryPath.contains("Linux/armv8"))
|
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
|
else
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|
Loading…
Reference in New Issue