summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/c51.lua
diff options
context:
space:
mode:
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})