diff options
| author | ruki <[email protected]> | 2020-03-01 14:05:42 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-03-01 14:05:42 +0800 |
| commit | 8399236ed894f10f58570b91af8e8a501cd2453d (patch) | |
| tree | 5a1d6b297fc3be45ec5b1dec3c55fae3d3070fb6 /xmake/modules/private/action/build/object.lua | |
| parent | ab89db832e169bc6727b2ad8f5c1b6d34651269c (diff) | |
improve to show progress
Diffstat (limited to 'xmake/modules/private/action/build/object.lua')
| -rw-r--r-- | xmake/modules/private/action/build/object.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/private/action/build/object.lua b/xmake/modules/private/action/build/object.lua index 27aedb527..c9dc5cbc8 100644 --- a/xmake/modules/private/action/build/object.lua +++ b/xmake/modules/private/action/build/object.lua @@ -58,11 +58,11 @@ function _do_build_file(target, sourcefile, opt) -- trace progress info if not opt.quiet then - cprintf("${color.build.progress}" .. theme.get("text.build.progress_format") .. ":${clear} ", progress) + local progress_prefix = "${color.build.progress}" .. theme.get("text.build.progress_format") .. ":${clear} " if verbose then - cprint("${dim color.build.object}%scompiling.$(mode) %s", exists_ccache and "ccache " or "", sourcefile) + cprint(progress_prefix .. "${dim color.build.object}%scompiling.$(mode) %s", progress, exists_ccache and "ccache " or "", sourcefile) else - cprint("${color.build.object}%scompiling.$(mode) %s", exists_ccache and "ccache " or "", sourcefile) + cprint(progress_prefix .. "${color.build.object}%scompiling.$(mode) %s", progress, exists_ccache and "ccache " or "", sourcefile) end end |
