From 64645daebde9aceaeea7f24c9156cdaa4ac5e035 Mon Sep 17 00:00:00 2001 From: TitanSnow Date: Fri, 26 May 2017 21:48:56 +0800 Subject: fix wrong arch report for `os.versioninfo()` xmake on Windows built for x86_64 arch will report i386 calling `os.versioninfo()`. This may be a history problem that in the past there's no 64-bit xmake on Windows and some other places should also do this modify --- core/src/xmake/os/versioninfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/xmake/os/versioninfo.c b/core/src/xmake/os/versioninfo.c index cc8504a11..c83f2ffb3 100644 --- a/core/src/xmake/os/versioninfo.c +++ b/core/src/xmake/os/versioninfo.c @@ -249,7 +249,7 @@ tb_int_t xm_os_versioninfo(lua_State* lua) lua_pushstring(lua, "arch"); // init architecture -#if defined(TB_ARCH_x86) || defined(TB_CONFIG_OS_WINDOWS) +#if defined(TB_ARCH_x86) lua_pushstring(lua, "i386"); #elif defined(TB_ARCH_x64) lua_pushstring(lua, "x86_64"); -- cgit v1.3.1