diff options
| author | ruki <[email protected]> | 2026-04-02 00:01:02 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-04-02 00:01:02 +0800 |
| commit | c63ac2d50545f2f58872c5be9a46d8fb5b3e8016 (patch) | |
| tree | ca93c48a2219c7fb327febcdf27445fc68a15d3f /core/src/lua | |
| parent | 5527d6c88fd8ec864cf4c1978c49d2a819f0d2af (diff) | |
fix lua55 limit
Diffstat (limited to 'core/src/lua')
| -rw-r--r-- | core/src/lua/xmake.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/src/lua/xmake.lua b/core/src/lua/xmake.lua index 39d7b0baa..d732b89fb 100644 --- a/core/src/lua/xmake.lua +++ b/core/src/lua/xmake.lua @@ -14,7 +14,12 @@ target("lua") add_includedirs("lua", {public = true}) -- add the common source files - add_files("lua/*.c|lua.c|onelua.c|loslib.c") + add_files("lua/*.c|lua.c|onelua.c|loslib.c|lparser.c") + + -- allow reassignment of for-loop control variables (lua 5.4 compatible) + add_files("lua/lparser.c", {rules = "utils.replace", replaces = { + {"RDKCONST%);", "VDKREG);"}, + }}) if not is_plat("iphoneos") then add_files("lua/loslib.c") end |
