summaryrefslogtreecommitdiff
path: root/core/src/lua-cjson
diff options
context:
space:
mode:
authorruki <[email protected]>2022-12-15 00:32:48 +0800
committerruki <[email protected]>2022-12-15 00:32:48 +0800
commitf12120f9b0d6118df89b50217350d26ed9398496 (patch)
tree44b497b552240f47dc2e6d61c6276832afeec485 /core/src/lua-cjson
parent3574928f7cbcdfc722c4ab35a9c0d4bf10935ec7 (diff)
improve xmake.sh for lua
Diffstat (limited to 'core/src/lua-cjson')
-rw-r--r--core/src/lua-cjson/xmake.lua2
-rwxr-xr-xcore/src/lua-cjson/xmake.sh6
2 files changed, 2 insertions, 6 deletions
diff --git a/core/src/lua-cjson/xmake.lua b/core/src/lua-cjson/xmake.lua
index 75b62c16b..74406d67e 100644
--- a/core/src/lua-cjson/xmake.lua
+++ b/core/src/lua-cjson/xmake.lua
@@ -1,7 +1,7 @@
target("lua-cjson")
set_kind("static")
set_warnings("all")
- add_deps(get_config("runtime"))
+ add_deps("lua")
if is_plat("windows") then
set_languages("c89")
end
diff --git a/core/src/lua-cjson/xmake.sh b/core/src/lua-cjson/xmake.sh
index c39903d35..6b9e4aad3 100755
--- a/core/src/lua-cjson/xmake.sh
+++ b/core/src/lua-cjson/xmake.sh
@@ -3,11 +3,7 @@
target "lua_cjson"
set_kind "static"
set_warnings "all"
- if is_config "runtime" "luajit"; then
- add_deps "luajit"
- else
- add_deps "lua"
- fi
+ add_deps "lua"
add_files "lua-cjson/dtoa.c"
add_files "lua-cjson/lua_cjson.c"
add_files "lua-cjson/strbuf.c"