diff options
| author | ruki <[email protected]> | 2024-01-25 23:01:17 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-01-25 23:01:17 +0800 |
| commit | 37ea03445cb35ed3f3966f3433211451175eead1 (patch) | |
| tree | e93a8fe542959be3aa5f7d4088d0f97b99c892bd /xmake/modules/core/tools/sdasstm8.lua | |
| parent | ef5cf74c8e31fbda01b75187e6c934331ad46009 (diff) | |
use build warnings policy
Diffstat (limited to 'xmake/modules/core/tools/sdasstm8.lua')
| -rw-r--r-- | xmake/modules/core/tools/sdasstm8.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/core/tools/sdasstm8.lua b/xmake/modules/core/tools/sdasstm8.lua index 82c19c9fe..86927a345 100644 --- a/xmake/modules/core/tools/sdasstm8.lua +++ b/xmake/modules/core/tools/sdasstm8.lua @@ -21,9 +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") -- make the includedir flag function nf_includedir(self, dir) @@ -85,7 +85,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 |
