From c63ac2d50545f2f58872c5be9a46d8fb5b3e8016 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 2 Apr 2026 00:01:02 +0800 Subject: fix lua55 limit --- core/src/lua/xmake.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'core/src/lua') 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 -- cgit v1.3.1