summaryrefslogtreecommitdiff
path: root/xmake/scripts/base/makefile.lua
diff options
context:
space:
mode:
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