diff options
| author | ruki <[email protected]> | 2021-06-10 22:35:57 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-06-10 22:35:57 +0800 |
| commit | 60208dbc13022af80731711bd61b76845a348cb6 (patch) | |
| tree | 197fe16649fac004a35cbbd0dd76c1bde8f81064 | |
| parent | 9627fd7d1bf3507e5c0a1ca80e3b6465b3cd7c95 (diff) | |
fix links
| -rw-r--r-- | xmake/rules/utils/inherit_links/inherit_links.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/rules/utils/inherit_links/inherit_links.lua b/xmake/rules/utils/inherit_links/inherit_links.lua index f127481e8..7ea7aba28 100644 --- a/xmake/rules/utils/inherit_links/inherit_links.lua +++ b/xmake/rules/utils/inherit_links/inherit_links.lua @@ -43,7 +43,8 @@ function main(target) target:add("links", target:linkname(), {interface = true}) local links = target:get("links", {rawref = true}) if links and type(links) == "table" and #links > 1 then - table.swap(links, 1, #links) + table.insert(links, 1, links[#links]) + table.remove(links, #links) end target:add("linkdirs", path.directory(targetfile), {interface = true}) |
