summaryrefslogtreecommitdiff
path: root/xmake/rules/utils
diff options
context:
space:
mode:
authorruki <[email protected]>2021-05-21 22:50:20 +0800
committerruki <[email protected]>2021-05-21 22:50:20 +0800
commit6eea080650bdf56d01384eb735f76a4aa56676f5 (patch)
tree83d30f930fd2abb6bd5fa7af2e8bd92c5f0968a1 /xmake/rules/utils
parentf84775ba240e751cc266c5cccd0acbc18f3bae24 (diff)
add prefis, suffix and extension apis
Diffstat (limited to 'xmake/rules/utils')
-rw-r--r--xmake/rules/utils/inherit_links/inherit_links.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/utils/inherit_links/inherit_links.lua b/xmake/rules/utils/inherit_links/inherit_links.lua
index 2a130aac0..f127481e8 100644
--- a/xmake/rules/utils/inherit_links/inherit_links.lua
+++ b/xmake/rules/utils/inherit_links/inherit_links.lua
@@ -40,7 +40,7 @@ function main(target)
local targetfile = target:targetfile()
-- we need move target link to head
- target:add("links", target:basename(), {interface = true})
+ 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)