diff options
| author | ruki <[email protected]> | 2022-05-17 21:04:16 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-05-17 21:04:16 +0800 |
| commit | 053c31a5582c15fea9fc674ec3a14cccd9057b7e (patch) | |
| tree | 0c8f0129a99c2633b996d3a93eee0d2366f0df34 /xmake/modules/core/tools/cl.lua | |
| parent | b4159ba0031f6203838396fcb964e77e3c7f402d (diff) | |
improve cl errors
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
| -rw-r--r-- | xmake/modules/core/tools/cl.lua | 4 |
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 |
