summaryrefslogtreecommitdiff
path: root/core/src/lua-cjson/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/lua-cjson/xmake.lua')
-rw-r--r--core/src/lua-cjson/xmake.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/src/lua-cjson/xmake.lua b/core/src/lua-cjson/xmake.lua
index fa7855150..e4206c9fc 100644
--- a/core/src/lua-cjson/xmake.lua
+++ b/core/src/lua-cjson/xmake.lua
@@ -1,7 +1,11 @@
target("lua-cjson")
set_kind("static")
set_warnings("all")
- add_deps("lua")
+ if is_config("runtime", "luajit") then
+ add_deps("luajit")
+ else
+ add_deps("lua")
+ end
if is_plat("windows") then
set_languages("c89")
end