summaryrefslogtreecommitdiff
path: root/xmake/core/tool/linker.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-05-26 00:39:32 +0800
committerruki <[email protected]>2020-05-25 21:57:13 +0800
commit5c8d2277d8a3500a2078cf488c49c3c167349717 (patch)
tree8d3d214a9807e0979454941942e80201d8a00c59 /xmake/core/tool/linker.lua
parent9fd9080e25b3099c8deec80362d06529b4730b70 (diff)
fix load tool
Diffstat (limited to 'xmake/core/tool/linker.lua')
-rw-r--r--xmake/core/tool/linker.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/tool/linker.lua b/xmake/core/tool/linker.lua
index bbb088e7c..9a6141f03 100644
--- a/xmake/core/tool/linker.lua
+++ b/xmake/core/tool/linker.lua
@@ -79,7 +79,7 @@ function linker._load_tool(targetkind, sourcekinds, target)
-- get program from target
local program, toolname
- if target then
+ if target and target:type() == "target" then
program, toolname = target:tool(_linkerinfo.linkerkind)
end