summaryrefslogtreecommitdiff
path: root/core/src/luajit/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-09-11 22:19:14 +0800
committerruki <[email protected]>2020-09-11 22:19:14 +0800
commit3d07635bfab91ae47e1ea08e2e221a4209c6a610 (patch)
tree1eee4ef35c37a47732703a7f15f8d0ed1ad1ad8a /core/src/luajit/xmake.lua
parent8b50ff7c6583e0ebfb2b249fc4528ca578d0e115 (diff)
merge msys and cygwin autogen to windows
Diffstat (limited to 'core/src/luajit/xmake.lua')
-rw-r--r--core/src/luajit/xmake.lua9
1 files changed, 7 insertions, 2 deletions
diff --git a/core/src/luajit/xmake.lua b/core/src/luajit/xmake.lua
index 0ac45af6b..d10d6e04c 100644
--- a/core/src/luajit/xmake.lua
+++ b/core/src/luajit/xmake.lua
@@ -1,10 +1,15 @@
-- disable jit compiler for redhat and centos
local jit = true
-local autogendir = "autogen/$(plat)/jit/$(arch)"
+local plat = "$(plat)"
+local arch = "$(arch)"
+if is_plat("msys", "cygwin") then
+ plat = "windows"
+ arch = is_arch("x86_64") and "x64" or "x86"
+end
if os.isfile("/etc/redhat-release") then
jit = false
- autogendir = "autogen/$(plat)/nojit/$(arch)"
end
+local autogendir = path.join("autogen", plat, jit and "jit" or "nojit", arch)
-- add target
target("luajit")