summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/core/tools/cl.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua
index 3bccc7a60..b5da3d0d1 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -514,9 +514,7 @@ function compile(self, sourcefile, objectfile, dependinfo, flags, opt)
-- use cl/stdout as errors first from vstool.iorunv()
if type(errors) == "table" then
local errs = errors.stdout or ""
- if #errs:trim() == 0 then
- errs = errors.stderr or ""
- end
+ errs = errs .. (errors.stderr or "")
errors = errs
end