diff options
| author | ruki <[email protected]> | 2025-11-21 22:54:29 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-11-21 22:54:29 +0800 |
| commit | 0719de2b664bdfc82ce30534ed196bfc81fc072a (patch) | |
| tree | 653d98166d0cf47bbe48859a91eb6c2c1bb1af32 /xmake/modules/core/tools/rc.lua | |
| parent | 35bc14eee3c7568bc45591b435fce4d70c28dca9 (diff) | |
fix progress output
Diffstat (limited to 'xmake/modules/core/tools/rc.lua')
| -rw-r--r-- | xmake/modules/core/tools/rc.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/rc.lua b/xmake/modules/core/tools/rc.lua index 6eec87557..a282eea22 100644 --- a/xmake/modules/core/tools/rc.lua +++ b/xmake/modules/core/tools/rc.lua @@ -22,7 +22,9 @@ import("core.base.option") import("core.base.hashset") import("core.project.project") +import("core.project.policy") import("private.tools.vstool") +import("utils.progress") -- normailize path of a dependecy function _normailize_dep(dep, projectdir) @@ -113,8 +115,8 @@ function compile(self, sourcefile, objectfile, dependinfo, flags, opt) finally { function (ok, warnings) - if warnings and #warnings > 0 and option.get("verbose") then - cprint("${color.warning}%s", table.concat(table.slice(warnings:split('\n'), 1, 8), '\n')) + if warnings and #warnings > 0 and policy.build_warnings(opt) then + progress.show_output("${color.warning}%s", table.concat(table.slice(warnings:split('\n'), 1, 8), '\n')) end end } |
