summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/c51.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/c51.lua
parent37ea03445cb35ed3f3966f3433211451175eead1 (diff)
improve check warnings
Diffstat (limited to 'xmake/modules/core/tools/c51.lua')
-rw-r--r--xmake/modules/core/tools/c51.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/c51.lua b/xmake/modules/core/tools/c51.lua
index 105c0dbc3..d9c751bdc 100644
--- a/xmake/modules/core/tools/c51.lua
+++ b/xmake/modules/core/tools/c51.lua
@@ -110,7 +110,7 @@ function compile(self, sourcefile, objectfile, dependinfo, flags, opt)
{
function (ok, outdata, errdata)
-- show warnings?
- if ok and outdata and #outdata > 0 and policy.build_warnings() then
+ if ok and outdata and #outdata > 0 and policy.build_warnings(opt) then
local warnings_count = outdata:match("(%d-) WARNING")
if warnings_count and tonumber(warnings_count) > 0 then
local lines = outdata:split('\n', {plain = true})