summaryrefslogtreecommitdiff
path: root/xmake/actions/build/kinds/object.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/actions/build/kinds/object.lua')
-rwxr-xr-xxmake/actions/build/kinds/object.lua14
1 files changed, 11 insertions, 3 deletions
diff --git a/xmake/actions/build/kinds/object.lua b/xmake/actions/build/kinds/object.lua
index c1d8b08dc..f22aafbe0 100755
--- a/xmake/actions/build/kinds/object.lua
+++ b/xmake/actions/build/kinds/object.lua
@@ -132,11 +132,19 @@ function _build(target, g, index)
return
end
- -- trace
- print("[%02d%%]: %scompiling.$(mode) %s", percent, ifelse(config.get("ccache"), "ccache ", ""), sourcefile)
+ -- is verbose?
+ local verbose = option.get("verbose")
+
+ -- trace percent info
+ cprintf("${yellow}[%02d%%]:${clear} ", percent)
+ if verbose then
+ cprint("${dim}%scompiling.$(mode) %s", ifelse(config.get("ccache"), "ccache ", ""), sourcefile)
+ else
+ print("%scompiling.$(mode) %s", ifelse(config.get("ccache"), "ccache ", ""), sourcefile)
+ end
-- trace verbose info
- if option.get("verbose") then
+ if verbose then
print(compiler.compcmd(sourcefile, objectfile, target))
end