From c2e614548b92821c8396e2a2e9f06afeb97cc7bd Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 11 Jun 2015 21:56:03 +0800 Subject: optimizate to find tool script --- xmake/scripts/base/makefile.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmake/scripts/base/makefile.lua') 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 -- cgit v1.3.1