diff options
Diffstat (limited to 'xmake/actions/build/kinds/static.lua')
| -rwxr-xr-x | xmake/actions/build/kinds/static.lua | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/xmake/actions/build/kinds/static.lua b/xmake/actions/build/kinds/static.lua index 709c0c936..d7503ffcb 100755 --- a/xmake/actions/build/kinds/static.lua +++ b/xmake/actions/build/kinds/static.lua @@ -60,11 +60,19 @@ function build(target, g) -- the target file local targetfile = target:targetfile() - -- trace - print("[%02d%%]: archiving.$(mode) %s", (g.targetindex + 1) * 100 / g.targetcount, path.filename(targetfile)) + -- is verbose? + local verbose = option.get("verbose") + + -- trace percent info + cprintf("${yellow}[%02d%%]:${clear} ", (g.targetindex + 1) * 100 / g.targetcount) + if verbose then + cprint("${dim}archiving.$(mode) %s", path.filename(targetfile)) + else + print("archiving.$(mode) %s", path.filename(targetfile)) + end -- trace verbose info - if option.get("verbose") then + if verbose then print(archiver.archivecmd(objectfiles, targetfile, target)) end |
