summaryrefslogtreecommitdiff
path: root/xmake/core/tool/builder.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2026-03-29 22:49:37 +0800
committerruki <[email protected]>2026-03-29 22:49:41 +0800
commit1bccfc273af2b1d579d033324bca481e15c58653 (patch)
tree192697793bd61d48b4423da0ac4a1eab804d80dc /xmake/core/tool/builder.lua
parentf4513cc28aa778e1ad0d050511cc7e295fe81e32 (diff)
fix const limit on lua5.5
Diffstat (limited to 'xmake/core/tool/builder.lua')
-rw-r--r--xmake/core/tool/builder.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/core/tool/builder.lua b/xmake/core/tool/builder.lua
index e6c649580..a72733680 100644
--- a/xmake/core/tool/builder.lua
+++ b/xmake/core/tool/builder.lua
@@ -165,6 +165,7 @@ function builder:_add_flags_from_flagkind(flags, target, flagkind, opt)
local targetflags = target:get(flagkind, opt)
local extraconf = target:extraconf(flagkind)
for _, flag in ipairs(table.wrap(targetflags)) do
+ local flag = flag
flag = target_utils.flag_belong_to_tool(flag, self, extraconf)
if flag then
if extraconf then
@@ -390,6 +391,7 @@ function builder:_add_items_from_target(items, name, opt)
local result, sources = target:get_from(name, "*")
if result then
for idx, values in ipairs(result) do
+ local values = values
local source = sources[idx]
local extras = target:extraconf_from(name, source)
values = table.wrap(values)
@@ -691,6 +693,7 @@ function builder:_sort_links_of_items(items, opt)
-- re-generate links to items list
if sortlinks or makegroups then
for _, link in ipairs(links) do
+ local link = link
if link:startswith("framework::") then
link = link:sub(12)
table.insert(items, {name = "frameworks", values = table.wrap(link), check = false, multival = false, mapper = framework_mapper})