summaryrefslogtreecommitdiff
path: root/xmake/core/tool/builder.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-09-30 00:37:39 +0800
committerruki <[email protected]>2023-09-30 00:37:39 +0800
commitfa04e8acf20cf3b89679562acdc4d9f21aed3232 (patch)
tree9956fc2cbc1208f949baa887f0325cae3b420578 /xmake/core/tool/builder.lua
parent5a2c5c458af38dd90924f251d518b97ba2cf604b (diff)
check cycle links
Diffstat (limited to 'xmake/core/tool/builder.lua')
-rw-r--r--xmake/core/tool/builder.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/xmake/core/tool/builder.lua b/xmake/core/tool/builder.lua
index 69e7b4de5..e4421fde6 100644
--- a/xmake/core/tool/builder.lua
+++ b/xmake/core/tool/builder.lua
@@ -516,11 +516,12 @@ function builder:_sort_links_of_items(target, items)
end
end
if not gh:empty() then
+ local cycle = gh:find_cycle()
+ if cycle then
+ utils.warning("cycle links found in add_linkorders(): %s", table.concat(cycle, " -> "))
+ end
links = gh:topological_sort()
end
- gh:dump()
- local cycle = gh:find_cycle()
- utils.dump(cycle)
end
-- re-generate links to items list