summaryrefslogtreecommitdiff
path: root/xmake/core/tool/builder.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-02-03 15:27:07 +0800
committerruki <[email protected]>2019-02-03 15:27:07 +0800
commit640c2e7e81809d122adca38aca09d2448f14ed50 (patch)
treef0516a372a39d0e6b42461f8352d43210be67a72 /xmake/core/tool/builder.lua
parentb3985752dd4ff11e6fbcf38058da40ff92635c81 (diff)
improve target kind
Diffstat (limited to 'xmake/core/tool/builder.lua')
-rw-r--r--xmake/core/tool/builder.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/tool/builder.lua b/xmake/core/tool/builder.lua
index 09daa029f..8c6a3a105 100644
--- a/xmake/core/tool/builder.lua
+++ b/xmake/core/tool/builder.lua
@@ -153,8 +153,8 @@ function builder:_inherit_from_targetdeps(results, target, flagname)
local dep = orderdeps[total + 1 - idx]
-- is static or shared target library? link it
- local depkind = dep:get("kind")
- local targetkind = target:get("kind")
+ local depkind = dep:targetkind()
+ local targetkind = target:targetkind()
local depconfig = table.wrap(target:depconfig(dep:name()))
if (depkind == "static" or depkind == "shared" or depkind == "object") and (depconfig.inherit == nil or depconfig.inherit) then
if (flagname == "links" or flagname == "syslinks") and (targetkind == "binary" or targetkind == "shared") then