diff options
| author | ruki <[email protected]> | 2021-10-30 22:22:59 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-10-30 22:22:59 +0800 |
| commit | 1fdc20b61c6a5abd5bbec59f6274c035897bb3b4 (patch) | |
| tree | ade24e1a7a8e7770b241f2343ea07446d4a9cdab | |
| parent | f9af5b38ecf35c9e5741542e7a0f02f9dd0409f8 (diff) | |
Update gcc.lua
| -rw-r--r-- | xmake/modules/core/tools/gcc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua index 5baa9069d..224dc6c2d 100644 --- a/xmake/modules/core/tools/gcc.lua +++ b/xmake/modules/core/tools/gcc.lua @@ -500,7 +500,7 @@ function compile(self, sourcefile, objectfile, dependinfo, flags) if ok and errdata and #errdata > 0 and (option.get("diagnosis") or option.get("warning") or global.get("build_warning")) then local lines = errdata:split('\n', {plain = true}) if #lines > 0 then - if option.get("diagnosis") then + if not option.get("diagnosis") then lines = table.slice(lines, 1, (#lines > 16 and 16 or #lines)) end local warnings = table.concat(lines, "\n") |
