diff options
| author | ruki <[email protected]> | 2021-09-18 09:51:33 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-09-18 09:51:33 +0800 |
| commit | 6f0f25b64487a32989cb718aa50d9bc729f46d66 (patch) | |
| tree | 1f4b3d523cb591aab977363fdd241ae62b46661e /core/src/luajit/xmake.lua | |
| parent | eb826246511e2afca394302aecccdf18d02a297f (diff) | |
build lua for windows
Diffstat (limited to 'core/src/luajit/xmake.lua')
| -rw-r--r-- | core/src/luajit/xmake.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/luajit/xmake.lua b/core/src/luajit/xmake.lua index cfee1f76e..f6f351394 100644 --- a/core/src/luajit/xmake.lua +++ b/core/src/luajit/xmake.lua @@ -23,6 +23,9 @@ local autogendir = path.join("autogen", plat, jit and "jit" or "nojit", arch) -- add target target("luajit") + if not is_config("luajit") then + set_default(false) + end -- make as a static library set_kind("static") @@ -52,6 +55,8 @@ target("luajit") add_files(autogendir .. "/*.S") end + add_defines("USE_LUAJIT", {interface = true}) + -- disable jit compiler? if not jit then add_defines("LUAJIT_DISABLE_JIT") |
