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 /tests | |
| parent | 8ee95c16390e8dbac222d1c0e665eb7dc43cccc7 (diff) | |
add progress.show
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/apis/rules/xmake.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/apis/rules/xmake.lua b/tests/apis/rules/xmake.lua index 96103e319..97c7e2c5f 100644 --- a/tests/apis/rules/xmake.lua +++ b/tests/apis/rules/xmake.lua @@ -27,8 +27,8 @@ rule("c code") end) on_build_file(function (target, sourcefile, opt) import("core.theme.theme") - local progress_prefix = "${color.build.progress}" .. theme.get("text.build.progress_format") .. ":${clear} " - cprint(progress_prefix .. "compiling.$(mode) %s", opt.progress, sourcefile) + import("private.utils.progress") + progress.show(opt.progress, "compiling.$(mode) %s", sourcefile) local objectfile_o = os.tmpfile() .. ".o" local sourcefile_c = os.tmpfile() .. ".c" os.cp(sourcefile, sourcefile_c) |
