summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/armcc.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/armcc.lua
parent37ea03445cb35ed3f3966f3433211451175eead1 (diff)
improve check warnings
Diffstat (limited to 'xmake/modules/core/tools/armcc.lua')
-rw-r--r--xmake/modules/core/tools/armcc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/armcc.lua b/xmake/modules/core/tools/armcc.lua
index 369ebaa48..85aeda98c 100644
--- a/xmake/modules/core/tools/armcc.lua
+++ b/xmake/modules/core/tools/armcc.lua
@@ -126,7 +126,7 @@ function compargv(self, sourcefile, objectfile, flags)
end
-- compile the source file
-function compile(self, sourcefile, objectfile, dependinfo, flags)
+function compile(self, sourcefile, objectfile, dependinfo, flags, opt)
-- ensure the object directory
os.mkdir(path.directory(objectfile))
@@ -176,7 +176,7 @@ function compile(self, sourcefile, objectfile, dependinfo, flags)
function (ok, warnings)
-- print some warnings
- if warnings and #warnings > 0 and policy.build_warnings() then
+ if warnings and #warnings > 0 and policy.build_warnings(opt) then
if progress.showing_without_scroll() then
print("")
end