mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-16 08:13:30 +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");
|
duk_push_string(ctx, "x64");
|
||||||
#endif
|
#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");
|
duk_push_string(ctx, "arm64");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user