summaryrefslogtreecommitdiff
path: root/xmake/scripts/base/makefile.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-11 21:56:03 +0800
committerruki <[email protected]>2015-06-11 21:56:03 +0800
commitc2e614548b92821c8396e2a2e9f06afeb97cc7bd (patch)
treeea54e043c6f065fce7a778e459440d138a075b54 /xmake/scripts/base/makefile.lua
parent5198147b0b71e43883f4454eaabecfec9b8f9c74 (diff)
optimizate to find tool script
Diffstat (limited to 'xmake/scripts/base/makefile.lua')
-rw-r--r--xmake/scripts/base/makefile.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/scripts/base/makefile.lua b/xmake/scripts/base/makefile.lua
index ba939790a..8be6334a5 100644
--- a/xmake/scripts/base/makefile.lua
+++ b/xmake/scripts/base/makefile.lua
@@ -43,10 +43,10 @@ function makefile._make_object(file, target, srcfile, objfile)
assert(file and target and srcfile and objfile)
-- get the compiler
- local c = compiler.get(srcfile)
+ local c, errors = compiler.get(srcfile)
if not c then
-- error
- utils.error("unknown source file: %s", srcfile)
+ utils.error(errors)
return false
end