From 4ca5b7977c312b8e87336c4392d35885b863df48 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 20 Sep 2025 00:56:35 +0800 Subject: improve depslib --- xmake/modules/utils/binary/deplibs.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xmake/modules/utils/binary') diff --git a/xmake/modules/utils/binary/deplibs.lua b/xmake/modules/utils/binary/deplibs.lua index 54b3ed4a2..30c1e6b4f 100644 --- a/xmake/modules/utils/binary/deplibs.lua +++ b/xmake/modules/utils/binary/deplibs.lua @@ -372,6 +372,7 @@ end -- - resolve_path: try to resolve the file full path, e.g. @rpath, @loader_path, $ORIGIN, relative path .. -- - resolve_hint_paths: we can resolve and match path from them -- - resolve_search_paths: the search library paths, like: LD_LIBRARY_PATH, DYLD_LIBRARY_PATH, ... +-- - check_cycle: check cycle deps -- function main(binaryfile, opt) opt = opt or {} @@ -383,7 +384,7 @@ function main(binaryfile, opt) local dag = graph.new(true) _get_recursive_depends(binaryfile, dag, hashset.new(), opt) local depends, has_cycle = dag:topo_sort() - if has_cycle then + if has_cycle and opt.check_cycle then local files = {} local cycle = dag:find_cycle() if cycle then -- cgit v1.3.1