diff options
| author | ruki <[email protected]> | 2023-10-26 23:51:57 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-10-26 23:51:57 +0800 |
| commit | 311171bcd0cee217855858b9c94502a40fbfad56 (patch) | |
| tree | ecee776b38e23ca4a4e62aad070dee67a9181a16 /xmake/modules | |
| parent | d867bea8765d546abdbad08a3e573a88a8553b1c (diff) | |
fix sort and extra
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/package/manager/xmake/find_package.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/xmake/modules/package/manager/xmake/find_package.lua b/xmake/modules/package/manager/xmake/find_package.lua index 0d5336fe4..d672f98b4 100644 --- a/xmake/modules/package/manager/xmake/find_package.lua +++ b/xmake/modules/package/manager/xmake/find_package.lua @@ -42,6 +42,11 @@ function _deduplicate_values(values) end end +-- sort links +function _sort_links(result, opt) + print(result) +end + -- find package from the repository (maybe only include and no links) function _find_package_from_repo(name, opt) @@ -230,6 +235,11 @@ function _find_package_from_repo(name, opt) end end + -- sort links + if opt.linkorders or result.linkgroups then + _sort_links(result, opt) + end + -- deduplicate result _deduplicate_values(result) |
