summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorruki <[email protected]>2019-08-14 22:33:53 +0800
committerruki <[email protected]>2019-08-14 09:23:23 +0800
commit907bda822978387e82b369b2fdb47dfc62904fca (patch)
treeacd613394bc434dc0d81fa4e37daa1bcf1e56abe /core/src
parent4a6c8223a06325e0286ca4d7f79e954565d77828 (diff)
fix android platform for termux
Diffstat (limited to 'core/src')
-rw-r--r--core/src/xmake/machine.c5
1 files 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