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

Added 'mips' and 'mipsel' to os.arch()

This commit is contained in:
Bryan Roe
2020-11-11 16:39:15 -08:00
parent 1ec352f96b
commit d5a2c078be

View File

@@ -1650,11 +1650,22 @@ duk_ret_t ILibDuktape_ScriptContainer_OS_arch(duk_context *ctx)
}
}
else
{
if (strcmp(u.machine, "mips") == 0)
{
duk_push_string(ctx, "mips");
}
else if (strcmp(u.machine, "mipsel") == 0)
{
duk_push_string(ctx, "mipsel");
}
else
{
return(ILibDuktape_Error(ctx, "Could not determine architecture"));
}
}
}
}
return(1);
#endif