From 807c83c68af2d65974ff99fbf8e994112c63b0bc Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 17 Dec 2022 20:45:35 +0800 Subject: improve luajit deps --- core/src/lua-cjson/xmake.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core/src/lua-cjson') diff --git a/core/src/lua-cjson/xmake.sh b/core/src/lua-cjson/xmake.sh index 42e767218..134173051 100755 --- a/core/src/lua-cjson/xmake.sh +++ b/core/src/lua-cjson/xmake.sh @@ -4,7 +4,9 @@ target "lua_cjson" set_kind "static" set_default false set_warnings "all" - if has_config "lua"; then + if is_config "runtime" "luajit" && has_config "luajit"; then + add_options "luajit" "{public}" + elif has_config "lua"; then add_options "lua" "{public}" else add_deps "lua" -- cgit v1.3.1