mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-14 23:33:38 +00:00
Updated os.arch() to detect aarch64
This commit is contained in:
@@ -1695,7 +1695,7 @@ duk_ret_t ILibDuktape_ScriptContainer_OS_arch(duk_context *ctx)
|
||||
duk_push_string(ctx, "x64");
|
||||
#endif
|
||||
}
|
||||
else if (strcmp(u.machine, "arm64") == 0)
|
||||
else if (strcmp(u.machine, "arm64") == 0 || strcmp(u.machine, "aarch64") == 0)
|
||||
{
|
||||
duk_push_string(ctx, "arm64");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user