Load ndlls from correct path on Apple Silicon Mac
This commit is contained in:
@@ -165,6 +165,11 @@ class CFFI
|
||||
{
|
||||
result = __tryLoad(ndllFolder + __sysName() + "64/" + library, library, method, args);
|
||||
}
|
||||
|
||||
if (result == null)
|
||||
{
|
||||
result = __tryLoad(haxelib + "/ndll/" + __sysName() + "Arm64/" + library, library, method, args);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -485,15 +485,14 @@ class CommandLineTools
|
||||
}
|
||||
|
||||
case MAC:
|
||||
// if (System.hostArchitecture == X64) {
|
||||
|
||||
untyped $loader.path = $array(path + "Mac64/", $loader.path);
|
||||
|
||||
// } else {
|
||||
|
||||
// untyped $loader.path = $array (path + "Mac/", $loader.path);
|
||||
|
||||
// }
|
||||
if (System.hostArchitecture == X64)
|
||||
{
|
||||
untyped $loader.path = $array(path + "Mac64/", $loader.path);
|
||||
}
|
||||
else if (System.hostArchitecture == ARM64)
|
||||
{
|
||||
untyped $loader.path = $array(path + "MacArm64/", $loader.path);
|
||||
}
|
||||
|
||||
case LINUX:
|
||||
var arguments = Sys.args();
|
||||
|
||||
@@ -67,8 +67,14 @@ class SVGExport
|
||||
// }
|
||||
|
||||
case MAC:
|
||||
untyped $loader.path = $array(path + "Mac/", $loader.path);
|
||||
untyped $loader.path = $array(path + "Mac64/", $loader.path);
|
||||
if (System.hostArchitecture == X64)
|
||||
{
|
||||
untyped $loader.path = $array(path + "Mac64/", $loader.path);
|
||||
}
|
||||
else if (System.hostArchitecture == ARM64)
|
||||
{
|
||||
untyped $loader.path = $array(path + "MacArm64/", $loader.path);
|
||||
}
|
||||
|
||||
case LINUX:
|
||||
var arguments = Sys.args();
|
||||
|
||||
Reference in New Issue
Block a user