diff options
| author | ruki <[email protected]> | 2021-02-27 13:49:29 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-02-27 13:49:29 +0800 |
| commit | 06d15cea2ee275a82a4630147dc6aa9a33bbaf53 (patch) | |
| tree | 3fe36e57f14364dee6b34c6eb7bcd2fd3b9af7ac /core/src/luajit | |
| parent | 1cef4b3d84413c1d9155c5152d7c709f655b4067 (diff) | |
fix core/xmake.lua
Diffstat (limited to 'core/src/luajit')
| -rw-r--r-- | core/src/luajit/xmake.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/src/luajit/xmake.lua b/core/src/luajit/xmake.lua index aa5c1d7a2..85b796331 100644 --- a/core/src/luajit/xmake.lua +++ b/core/src/luajit/xmake.lua @@ -2,9 +2,11 @@ local jit = true local plat = "$(plat)" local arch = "$(arch)" -if is_plat("msys", "cygwin") then +if is_plat("msys", "mingw", "cygwin") then plat = "windows" arch = is_arch("x86_64") and "x64" or "x86" +elseif is_plat("android") then + plat = "linux" end if is_arch("arm64", "arm64-v8a") then arch = "arm64" @@ -44,7 +46,7 @@ target("luajit") add_files("luajit/src/*.c|ljamalg.c|luajit.c") if is_plat("windows") then add_files(autogendir .. "/lj_vm.obj") - elseif is_plat("msys", "cygwin") then + elseif is_plat("msys", "cygwin", "mingw") then add_files(autogendir .. "/lj_vm.o") else add_files(autogendir .. "/*.S") |
