From 053c31a5582c15fea9fc674ec3a14cccd9057b7e Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 17 May 2022 21:04:16 +0800 Subject: improve cl errors --- xmake/modules/core/tools/cl.lua | 4 +--- 1 file changed, 1 insertion(+), 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 -- cgit v1.3.1