summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-10-30 22:22:22 +0800
committerGitHub <[email protected]>2021-10-30 22:22:22 +0800
commitf9af5b38ecf35c9e5741542e7a0f02f9dd0409f8 (patch)
tree56f2aee81a32dad5858bf5cf761a710b9153de53
parentc3384d3f1927eee53ebb8d94ed764e8de7ddc212 (diff)
Update cl.lua
-rw-r--r--xmake/modules/core/tools/cl.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua
index acf99529f..7bbb6ff8b 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -476,7 +476,10 @@ function compile(self, sourcefile, objectfile, dependinfo, flags, opt)
end
end
if #lines > 0 then
- local warnings = table.concat(table.slice(lines, 1, (#lines > 8 and 8 or #lines)), "\r\n")
+ if not option.get("diagnosis") then
+ lines = table.slice(lines, 1, (#lines > 16 and 16 or #lines))
+ end
+ local warnings = table.concat(lines, "\r\n")
if progress.showing_without_scroll() then
print("")
end