summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/tcc.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/tcc.lua
parent35bc14eee3c7568bc45591b435fce4d70c28dca9 (diff)
fix progress output
Diffstat (limited to 'xmake/modules/core/tools/tcc.lua')
-rw-r--r--xmake/modules/core/tools/tcc.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/tcc.lua b/xmake/modules/core/tools/tcc.lua
index 9eb9294ac..5b65d6675 100644
--- a/xmake/modules/core/tools/tcc.lua
+++ b/xmake/modules/core/tools/tcc.lua
@@ -25,6 +25,7 @@ import("core.project.config")
import("core.project.project")
import("core.project.policy")
import("core.language.language")
+import("utils.progress")
-- init it
function init(self)
@@ -195,7 +196,7 @@ function compile(self, sourcefile, objectfile, dependinfo, flags, opt)
-- print some 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
-- generate the dependent includes