From 907bda822978387e82b369b2fdb47dfc62904fca Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 14 Aug 2019 22:33:53 +0800 Subject: fix android platform for termux --- core/src/xmake/machine.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/xmake/machine.c b/core/src/xmake/machine.c index 5e34d8fd5..cf7266cd4 100644 --- a/core/src/xmake/machine.c +++ b/core/src/xmake/machine.c @@ -676,12 +676,13 @@ xm_machine_ref_t xm_machine_init() lua_pushstring(machine->lua, "windows"); #elif defined(TB_CONFIG_OS_MACOSX) lua_pushstring(machine->lua, "macosx"); +#elif defined(TB_CONFIG_OS_ANDROID) || \ + defined(__ANDROID__) /* on termux/android */ + lua_pushstring(machine->lua, "android"); #elif defined(TB_CONFIG_OS_LINUX) lua_pushstring(machine->lua, "linux"); #elif defined(TB_CONFIG_OS_IOS) lua_pushstring(machine->lua, "ios"); -#elif defined(TB_CONFIG_OS_ANDROID) - lua_pushstring(machine->lua, "android"); #elif defined(TB_CONFIG_OS_LIKE_UNIX) lua_pushstring(machine->lua, "unix"); #else -- cgit v1.3.1