summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorTitanSnow <[email protected]>2017-05-26 21:48:56 +0800
committerTitanSnow <[email protected]>2017-05-26 21:48:56 +0800
commit64645daebde9aceaeea7f24c9156cdaa4ac5e035 (patch)
tree0a159bbe88a92a493ef6a855c8f39589d447506f /core/src
parentd38e09982e512c9427a5715cd742003f9664a999 (diff)
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
Diffstat (limited to 'core/src')
-rw-r--r--core/src/xmake/os/versioninfo.c2
1 files changed, 1 insertions, 1 deletions
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");