diff options
| author | ruki <[email protected]> | 2025-09-20 00:56:35 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-09-20 00:56:35 +0800 |
| commit | 4ca5b7977c312b8e87336c4392d35885b863df48 (patch) | |
| tree | a10c2866a3766bf8ce4bc13b10a6bd98b30624ea /xmake/modules/utils/binary/deplibs.lua | |
| parent | 7186aec3786cd31f4dea25716ddf57954bef5bf6 (diff) | |
improve depslib
Diffstat (limited to 'xmake/modules/utils/binary/deplibs.lua')
| -rw-r--r-- | xmake/modules/utils/binary/deplibs.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
