diff options
| author | ruki <[email protected]> | 2020-05-30 23:18:28 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-05-30 23:18:28 +0800 |
| commit | d50200be0abb94e7e627e7a25b5bab65d420eb16 (patch) | |
| tree | 06ab0407ff802bee7e9b7275df6081d657fe3609 /xmake/actions/build/kinds/binary.lua | |
| parent | 8ee95c16390e8dbac222d1c0e665eb7dc43cccc7 (diff) | |
add progress.show
Diffstat (limited to 'xmake/actions/build/kinds/binary.lua')
| -rw-r--r-- | xmake/actions/build/kinds/binary.lua | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/xmake/actions/build/kinds/binary.lua b/xmake/actions/build/kinds/binary.lua index 800faeb1f..2d38dc96c 100644 --- a/xmake/actions/build/kinds/binary.lua +++ b/xmake/actions/build/kinds/binary.lua @@ -24,6 +24,7 @@ import("core.theme.theme") import("core.tool.linker") import("core.tool.compiler") import("core.project.depend") +import("private.utils.progress") import("object", {alias = "add_batchjobs_for_object"}) -- do link target @@ -71,12 +72,7 @@ function _do_link_target(target, opt) local verbose = option.get("verbose") -- trace progress info - local progress_prefix = "${color.build.progress}" .. theme.get("text.build.progress_format") .. ":${clear} " - if verbose then - cprint(progress_prefix .. "${dim color.build.target}linking.$(mode) %s", opt.progress, path.filename(targetfile)) - else - cprint(progress_prefix .. "${color.build.target}linking.$(mode) %s", opt.progress, path.filename(targetfile)) - end + progress.show(opt.progress, "${color.build.target}linking.$(mode) %s", path.filename(targetfile)) -- trace verbose info if verbose then |
