summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-04-07 00:38:51 +0800
committerruki <[email protected]>2020-04-06 21:53:09 +0800
commitd863b9657d7c93247a242a7ae9e2138916f08d7a (patch)
tree800ae996f45dc9bf4860de5e6d304b563309fbbe
parent3b6d306b54f1d2d8b04e9c04fff7e9e2883559a4 (diff)
improve inherit links rules
-rw-r--r--xmake/rules/utils/inherit_links/inherit_links.lua4
1 files changed, 0 insertions, 4 deletions
diff --git a/xmake/rules/utils/inherit_links/inherit_links.lua b/xmake/rules/utils/inherit_links/inherit_links.lua
index 30106e397..d1f20c2d2 100644
--- a/xmake/rules/utils/inherit_links/inherit_links.lua
+++ b/xmake/rules/utils/inherit_links/inherit_links.lua
@@ -62,10 +62,6 @@ function main(target)
if targetkind == "shared" or targetkind == "static" then
target:add("links", target:basename(), {interface = true})
target:add("linkdirs", path.directory(targetfile), {interface = true})
- end
-
- -- export all dependent links and linkdirs for static library
- if targetkind == "static" then
for _, name in ipairs({"frameworkdirs", "frameworks", "linkdirs", "links", "syslinks"}) do
local values = _get_values_from_target(target, name)
if values and #values > 0 then