summaryrefslogtreecommitdiff
path: root/xmake/core/tool/compiler.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/compiler.lua
parent383c46c282fe0fcd82e2bc8a2d227cd0528af262 (diff)
fix check ar failed for windows
Diffstat (limited to 'xmake/core/tool/compiler.lua')
-rw-r--r--xmake/core/tool/compiler.lua12
1 files changed, 9 insertions, 3 deletions
diff --git a/xmake/core/tool/compiler.lua b/xmake/core/tool/compiler.lua
index f2a3c6147..7d867a6d2 100644
--- a/xmake/core/tool/compiler.lua
+++ b/xmake/core/tool/compiler.lua
@@ -398,11 +398,17 @@ function compiler:get(name)
return self:_tool().get(name)
end
--- get the command
-function compiler:command(target, srcfile, objfile, logfile)
+-- get the compile command
+function compiler:compcmd(srcfile, objfile, target)
+
+ -- get flags
+ local flags = nil
+ if target then
+ flags = self:_flags(target)
+ end
-- get it
- return self:_tool().compcmd(srcfile, objfile, self:_flags(target), logfile)
+ return self:_tool().compcmd(srcfile, objfile, flags or "")
end
-- make the define flag