summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/gcc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-01-26 22:43:11 +0800
committerruki <[email protected]>2024-01-26 22:43:11 +0800
commit3b12cd7ac54e33af6891fc7444128bb5c493366f (patch)
treeb7fc835f51ba9d346f82b0148f3ca2c1c309a44c /xmake/modules/core/tools/gcc.lua
parent37ea03445cb35ed3f3966f3433211451175eead1 (diff)
improve check warnings
Diffstat (limited to 'xmake/modules/core/tools/gcc.lua')
-rw-r--r--xmake/modules/core/tools/gcc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index 15ce30280..e519b376a 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -845,7 +845,7 @@ function compile(self, sourcefile, objectfile, dependinfo, flags, opt)
{
function (ok, outdata, errdata)
-- show warnings?
- if ok and errdata and #errdata > 0 and policy.build_warnings() then
+ if ok and errdata and #errdata > 0 and policy.build_warnings(opt) then
local lines = errdata:split('\n', {plain = true})
if #lines > 0 then
if not option.get("diagnosis") then