1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-16 00:03:45 +00:00

Updated os.arch() to detect aarch64

This commit is contained in:
Bryan Roe
2021-08-29 10:51:59 -07:00
parent 12101c26ab
commit b496e192d9

View File

@@ -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");
} }