diff options
| author | ruki <[email protected]> | 2022-12-18 17:24:55 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-12-18 17:24:55 +0800 |
| commit | 68425b26424dbe2aead586a0e28fc76b640a3d57 (patch) | |
| tree | f9e77acb0f55bfaeb62ca86826402449cd982391 /core/src/lua-cjson/xmake.sh | |
| parent | 4e4f010e7fd1123dcbc272549f3d45f5261bc8a9 (diff) | |
| parent | 6cebe3979a67dbbc778692571f8dbdeb33a8fecb (diff) | |
Merge pull request #3175 from xmake-io/xmake.sh
improve xmake.sh
Diffstat (limited to 'core/src/lua-cjson/xmake.sh')
| -rwxr-xr-x | core/src/lua-cjson/xmake.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/core/src/lua-cjson/xmake.sh b/core/src/lua-cjson/xmake.sh index 7ee38cc10..134173051 100755 --- a/core/src/lua-cjson/xmake.sh +++ b/core/src/lua-cjson/xmake.sh @@ -4,7 +4,13 @@ target "lua_cjson" set_kind "static" set_default false set_warnings "all" - add_deps "lua" + 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" + fi add_files "lua-cjson/dtoa.c" add_files "lua-cjson/lua_cjson.c" add_files "lua-cjson/strbuf.c" |
