From d3d05b0c620dbfc318d4c693bc2fb7b556d51d3c Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 4 Nov 2018 22:20:13 +0800 Subject: improve diagnosis info --- xmake/modules/core/tools/gcc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/modules/core') diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua index b1608b5ba..551a158e3 100644 --- a/xmake/modules/core/tools/gcc.lua +++ b/xmake/modules/core/tools/gcc.lua @@ -491,7 +491,7 @@ function _compile1(self, sourcefile, objectfile, dependinfo, flags) function (ok, warnings) -- print some warnings - if warnings and #warnings > 0 and (option.get("verbose") or option.get("warning")) then + if warnings and #warnings > 0 and (option.get("diagnosis") or option.get("warning")) then cprint("${yellow}%s", table.concat(table.slice(warnings:split('\n'), 1, 8), '\n')) end end -- cgit v1.3.1