From 685000fcb6d6eed642e3b56b345dc25caec999c4 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 19 Jan 2023 23:31:25 +0800 Subject: fix xmake.sh --- core/src/lua-cjson/xmake.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'core/src/lua-cjson/xmake.lua') 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 -- cgit v1.3.1