diff options
Diffstat (limited to 'core/src')
| -rw-r--r-- | core/src/xmake/machine.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/core/src/xmake/machine.c b/core/src/xmake/machine.c index 09c496eaf..ad1c4d366 100644 --- a/core/src/xmake/machine.c +++ b/core/src/xmake/machine.c @@ -505,10 +505,18 @@ xm_machine_ref_t xm_machine_init() lua_setglobal(impl->lua, "_HOST"); // init architecture -#if defined(TB_ARCH_x86) || defined(TB_CONFIG_OS_WINDOWS) +#if defined(TB_ARCH_x86) +# ifdef TB_CONFIG_OS_WINDOWS + lua_pushstring(impl->lua, "x86"); +# else lua_pushstring(impl->lua, "i386"); +# endif #elif defined(TB_ARCH_x64) +# ifdef TB_CONFIG_OS_WINDOWS + lua_pushstring(impl->lua, "x64"); +# else lua_pushstring(impl->lua, "x86_64"); +# endif #else lua_pushstring(impl->lua, TB_ARCH_STRING); #endif |
