summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/sdcc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/core/tools/sdcc.lua')
-rw-r--r--xmake/modules/core/tools/sdcc.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/sdcc.lua b/xmake/modules/core/tools/sdcc.lua
index 624b23454..fbbe496d6 100644
--- a/xmake/modules/core/tools/sdcc.lua
+++ b/xmake/modules/core/tools/sdcc.lua
@@ -21,8 +21,9 @@
-- imports
import("core.base.option")
import("core.base.global")
-import("utils.progress")
+import("core.project.policy")
import("core.language.language")
+import("utils.progress")
-- init it
function init(self)
@@ -225,7 +226,7 @@ function compile(self, sourcefile, objectfile, dependinfo, flags)
function (ok, warnings)
-- print some warnings
- if warnings and #warnings > 0 and (option.get("verbose") or option.get("warning") or global.get("build_warning")) then
+ if warnings and #warnings > 0 and policy.build_warnings() then
if progress.showing_without_scroll() then
print("")
end