diff options
| author | ruki <[email protected]> | 2017-05-12 11:47:10 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-05-12 11:47:10 +0800 |
| commit | e7c44268c01d692c11a5a8706c7fdec9abd26aa7 (patch) | |
| tree | 06e0607f0052fcb5155225168c9019cc44e1584d | |
| parent | 376e697ab8c71f75aafaf5b34524206936988aaf (diff) | |
fix target kind for option
| -rw-r--r-- | xmake/core/tool/builder.lua | 4 |
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 |
