summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 93027ed86..9cb9e7548 100644
--- a/xmake/core/tool/builder.lua
+++ b/xmake/core/tool/builder.lua
@@ -156,11 +156,11 @@ end
function builder:_addflags_from_targetdeps(results, target, flagname)
-- for all target deps
- local targetkind = target:targetkind()
for _, dep in ipairs(target:deps()) do
-- is static or shared target library? link it
- local depkind = dep:targetkind()
+ local depkind = dep:get("kind")
+ local targetkind = target:get("kind")
if depkind == "static" or depkind == "shared" then
if flagname == "links" and (targetkind == "binary" or targetkind == "shared") then