summaryrefslogtreecommitdiff
path: root/xmake/core/tool/linker.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/linker.lua
parentb3985752dd4ff11e6fbcf38058da40ff92635c81 (diff)
improve target kind
Diffstat (limited to 'xmake/core/tool/linker.lua')
-rw-r--r--xmake/core/tool/linker.lua4
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