summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/windres.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/windres.lua
parent35bc14eee3c7568bc45591b435fce4d70c28dca9 (diff)
fix progress output
Diffstat (limited to 'xmake/modules/core/tools/windres.lua')
-rw-r--r--xmake/modules/core/tools/windres.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/windres.lua b/xmake/modules/core/tools/windres.lua
index 1e651596b..c394c3c68 100644
--- a/xmake/modules/core/tools/windres.lua
+++ b/xmake/modules/core/tools/windres.lua
@@ -23,6 +23,7 @@ import("core.base.option")
import("core.base.global")
import("core.project.policy")
import("core.project.project")
+import("utils.progress")
-- init it
function init(self)
@@ -74,7 +75,7 @@ function compile(self, sourcefile, objectfile, dependinfo, flags, opt)
{
function (ok, warnings)
if warnings and #warnings > 0 and policy.build_warnings(opt) then
- cprint("${color.warning}%s", table.concat(table.slice(warnings:split('\n'), 1, 8), '\n'))
+ progress.show_output("${color.warning}%s", table.concat(table.slice(warnings:split('\n'), 1, 8), '\n'))
end
end
}