summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/makefile.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/plugins/project/makefile.lua
parent383c46c282fe0fcd82e2bc8a2d227cd0528af262 (diff)
fix check ar failed for windows
Diffstat (limited to 'xmake/plugins/project/makefile.lua')
-rwxr-xr-xxmake/plugins/project/makefile.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/plugins/project/makefile.lua b/xmake/plugins/project/makefile.lua
index 2fe7ffd93..60455ca6d 100755
--- a/xmake/plugins/project/makefile.lua
+++ b/xmake/plugins/project/makefile.lua
@@ -78,7 +78,7 @@ function _make_object(makefile, target, srcfile, objfile)
-- make command
local ccache = tool.shellname("ccache")
- local command = compiler.command(target, srcfile, objfile)
+ local command = compiler.compcmd(srcfile, objfile, target)
if ccache then
command = ccache:append(command, " ")
end
@@ -140,7 +140,7 @@ function _make_target(makefile, target)
makefile:print("")
-- make the command
- local command = linker.command(target)
+ local command = linker.linkcmd(target:objectfiles, targetfile, target)
-- make body
makefile:print("\t@echo linking.$(mode) %s", path.filename(targetfile))