diff options
| author | ruki <[email protected]> | 2020-05-30 23:34:23 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-05-30 23:34:23 +0800 |
| commit | f432fd004a28db20d312fb68dfd10734ba7a2295 (patch) | |
| tree | f3b9f0f34394f76fc1b1fef143d1a752c7a45533 /xmake/rules/cuda/devlink/xmake.lua | |
| parent | d50200be0abb94e7e627e7a25b5bab65d420eb16 (diff) | |
improve to show progress
Diffstat (limited to 'xmake/rules/cuda/devlink/xmake.lua')
| -rw-r--r-- | xmake/rules/cuda/devlink/xmake.lua | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/xmake/rules/cuda/devlink/xmake.lua b/xmake/rules/cuda/devlink/xmake.lua index a2a8651e7..2b4fb64cc 100644 --- a/xmake/rules/cuda/devlink/xmake.lua +++ b/xmake/rules/cuda/devlink/xmake.lua @@ -34,6 +34,7 @@ rule("cuda.build.devlink") import("core.project.depend") import("core.tool.linker") import("core.platform.platform") + import("private.utils.progress") -- disable devlink? if target:values("cuda.build.devlink") == false then @@ -92,12 +93,7 @@ rule("cuda.build.devlink") local verbose = option.get("verbose") -- trace progress info - cprintf("${color.build.progress}" .. theme.get("text.build.progress_format") .. ":${clear} ", opt.progress) - if verbose then - cprint("${dim color.build.target}devlinking.$(mode) %s", path.filename(targetfile)) - else - cprint("${color.build.target}devlinking.$(mode) %s", path.filename(targetfile)) - end + progress.show(opt.progress, "${color.build.target}devlinking.$(mode) %s", path.filename(targetfile)) -- trace verbose info if verbose then |
