summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-09-28 23:13:05 +0800
committerruki <[email protected]>2023-09-28 23:13:05 +0800
commit26d820178598a406749a31592cc8f26910327c5a (patch)
tree63759fab7f5e2f8dc9eda6fcbbfcf56237d0c4ac
parentca1eba2d96ed24fd2070b45de35c42ce3b37b066 (diff)
improve linkgroup key
-rw-r--r--xmake/core/tool/builder.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/core/tool/builder.lua b/xmake/core/tool/builder.lua
index f867304b1..9d6caa6a8 100644
--- a/xmake/core/tool/builder.lua
+++ b/xmake/core/tool/builder.lua
@@ -478,7 +478,7 @@ function builder:_sort_links_of_items(target, items)
framework_mapper = item.mapper
removed = true
elseif name == "linkgroups" then
- local key = tostring(value)
+ local key = target:extraconf("linkgroups", value, "name") or tostring(value)
table.insert(links, "linkgroup::" .. key)
linkgroups_map[key] = value
linkgroup_mapper = item.mapper
@@ -489,6 +489,8 @@ function builder:_sort_links_of_items(target, items)
end)
links = table.reverse_unique(links)
end
+ utils.dump(links)
+ utils.dump(linkorders)
-- sort sublinks
--[[