1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-12 22:33:55 +00:00

updated os.arch() for Apple Silicon

This commit is contained in:
Bryan Roe
2020-12-07 18:35:08 -08:00
parent dfaf7909b3
commit f02fbd7d21

View File

@@ -1677,6 +1677,10 @@ duk_ret_t ILibDuktape_ScriptContainer_OS_arch(duk_context *ctx)
duk_push_string(ctx, "x64");
#endif
}
if (strcmp(u.machine, "arm64") == 0)
{
duk_push_string(ctx, "arm64");
}
else
{
int mlen = strlen(u.machine); // size is not specified, but is gauranteed to be NULL terminated