summaryrefslogtreecommitdiff
path: root/xmake/core/tool/linker.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-07-03 14:11:09 +0800
committerruki <[email protected]>2016-07-03 14:11:09 +0800
commitbde33e64c9c036589c6f13d94bf577509fceb28d (patch)
tree69b0a2f3bf30e376cb73e19d315a22fb1335791b /xmake/core/tool/linker.lua
parent383c46c282fe0fcd82e2bc8a2d227cd0528af262 (diff)
fix check ar failed for windows
Diffstat (limited to 'xmake/core/tool/linker.lua')
-rw-r--r--xmake/core/tool/linker.lua12
1 files changed, 9 insertions, 3 deletions
diff --git a/xmake/core/tool/linker.lua b/xmake/core/tool/linker.lua
index 52d1e7b72..e0959702c 100644
--- a/xmake/core/tool/linker.lua
+++ b/xmake/core/tool/linker.lua
@@ -332,11 +332,17 @@ function linker:get(name)
return self:_tool().get(name)
end
--- get the command
-function linker:command(target, objfiles, targetfile, logfile)
+-- get the link command
+function linker:linkcmd(objfiles, targetfile, target)
+
+ -- get flags
+ local flags = nil
+ if target then
+ flags = self:_flags(target)
+ end
-- get it
- return self:_tool().linkcmd(table.concat(table.wrap(objfiles), " "), targetfile, self:_flags(target), logfile)
+ return self:_tool().linkcmd(table.concat(table.wrap(objfiles), " "), targetfile, flags or "")
end
-- make the link flag