summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2017-05-12 13:04:16 +0800
committerruki <[email protected]>2017-05-12 13:04:16 +0800
commit9c763d55994030f5e31ce16979a94fbf868f59fb (patch)
tree2c85e62b9c2307df64e984828232597472391e8b
parente7c44268c01d692c11a5a8706c7fdec9abd26aa7 (diff)
use target name as link
-rw-r--r--xmake/core/tool/builder.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/xmake/core/tool/builder.lua b/xmake/core/tool/builder.lua
index 9cb9e7548..d679cd0ff 100644
--- a/xmake/core/tool/builder.lua
+++ b/xmake/core/tool/builder.lua
@@ -165,10 +165,7 @@ function builder:_addflags_from_targetdeps(results, target, flagname)
if flagname == "links" and (targetkind == "binary" or targetkind == "shared") then
-- add dependent link
- local link, ok = path.filename(dep:targetfile()):gsub(target.filename("([%w_]+)", depkind):gsub("%.", "%%.") .. "$", "%1")
- if link and ok > 0 then
- table.insert(results, link)
- end
+ table.insert(results, dep:name())
elseif flagname == "linkdirs" and (targetkind == "binary" or targetkind == "shared") then