diff options
| author | ruki <[email protected]> | 2019-02-03 15:27:07 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-02-03 15:27:07 +0800 |
| commit | 640c2e7e81809d122adca38aca09d2448f14ed50 (patch) | |
| tree | f0516a372a39d0e6b42461f8352d43210be67a72 /xmake/core/tool/linker.lua | |
| parent | b3985752dd4ff11e6fbcf38058da40ff92635c81 (diff) | |
improve target kind
Diffstat (limited to 'xmake/core/tool/linker.lua')
| -rw-r--r-- | xmake/core/tool/linker.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/tool/linker.lua b/xmake/core/tool/linker.lua index 8eac1eb9d..ea653c1db 100644 --- a/xmake/core/tool/linker.lua +++ b/xmake/core/tool/linker.lua @@ -259,8 +259,8 @@ function linker:linkflags(opt) -- get target kind local targetkind = opt.targetkind - if not targetkind and target then - targetkind = target:get("kind") + if not targetkind and target and target.targetkind then + targetkind = target:targetkind() end -- add flags from the configure |
