From fa04e8acf20cf3b89679562acdc4d9f21aed3232 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 30 Sep 2023 00:37:39 +0800 Subject: check cycle links --- xmake/core/tool/builder.lua | 7 ++++--- 1 file 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 -- cgit v1.3.1