summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-01-19 23:16:39 +0800
committerruki <[email protected]>2023-01-19 23:16:39 +0800
commit91da9c460373a6a3b43a71fc75493df0e2ae5c2e (patch)
tree6cde75de27d88537f4c69590fc6573ea63ee69f6
parent50e02b189f625a9a6de542545d5c864addfa4ce0 (diff)
improve xmake.sh
-rwxr-xr-xcore/xmake.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/xmake.sh b/core/xmake.sh
index 8e20425b2..9ca61aae7 100755
--- a/core/xmake.sh
+++ b/core/xmake.sh
@@ -212,7 +212,7 @@ if ! has_config "lua"; then
includes "src/lua"
fi
fi
-if ! has_config "lua_cjson"; then
+if ! has_config "lua_cjson" || is_config "runtime" "lua"; then
includes "src/lua-cjson"
fi
if ! has_config "lz4"; then