Load Windows on ARM (aarch64) native library

This commit is contained in:
Sung Ho Yoon
2023-08-04 22:10:13 +09:00
committed by GitHub
parent b75f22b7bd
commit e0a5450264

View File

@@ -55,10 +55,16 @@ class FlatNativeLibrary
String classifier;
String ext;
if( SystemInfo.isWindows_10_orLater && (SystemInfo.isX86 || SystemInfo.isX86_64) ) {
// Windows: requires Windows 10/11 (x86 or x86_64)
if( SystemInfo.isWindows_10_orLater ) {
// Windows: requires Windows 10/11
if ( SystemInfo.isAARCH64 )
classifier = "windows-aarch64";
else if ( SystemInfo.isX86_64 )
classifier = "windows-x86_64";
else
classifier = "windows-x86";
classifier = SystemInfo.isX86_64 ? "windows-x86_64" : "windows-x86";
ext = "dll";
// Do not load jawt.dll (part of JRE) here explicitly because