summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/rc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-11-21 22:54:29 +0800
committerruki <[email protected]>2025-11-21 22:54:29 +0800
commit0719de2b664bdfc82ce30534ed196bfc81fc072a (patch)
tree653d98166d0cf47bbe48859a91eb6c2c1bb1af32 /xmake/modules/core/tools/rc.lua
parent35bc14eee3c7568bc45591b435fce4d70c28dca9 (diff)
fix progress output
Diffstat (limited to 'xmake/modules/core/tools/rc.lua')
-rw-r--r--xmake/modules/core/tools/rc.lua6
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
}