diff options
| author | ruki <[email protected]> | 2025-11-20 23:55:47 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-11-21 11:28:51 +0800 |
| commit | 2d5076fbba423d24300996773d1fb7ecfcd1b02b (patch) | |
| tree | e20f18af62ac437b8c5a7ad68d2d6e282211468d /xmake/modules/private | |
| parent | 0719de2b664bdfc82ce30534ed196bfc81fc072a (diff) | |
improve progress refresh timer
Diffstat (limited to 'xmake/modules/private')
| -rw-r--r-- | xmake/modules/private/action/build/target.lua | 16 | ||||
| -rw-r--r-- | xmake/modules/private/check/checkers/clang/tidy.lua | 8 |
2 files changed, 0 insertions, 24 deletions
diff --git a/xmake/modules/private/action/build/target.lua b/xmake/modules/private/action/build/target.lua index c3d21f399..d623744b4 100644 --- a/xmake/modules/private/action/build/target.lua +++ b/xmake/modules/private/action/build/target.lua @@ -799,14 +799,6 @@ function run_targetjobs(targets_root, opt) remote_only = opt.remote_only, progress_factor = opt.progress_factor } - -- Only set timer for multirow progress mode - if progress_utils.is_multirow() then - runjobs_opt.timeout = 1000 - runjobs_opt.on_timer = function (running_indices) - -- Periodically refresh multirow progress to update elapsed time - progress_utils.refresh() - end - end async_runjobs(job_kind, jobgraph, runjobs_opt) os.cd(curdir) return true @@ -827,14 +819,6 @@ function run_filejobs(targets_root, opt) remote_only = opt.remote_only, progress_factor = opt.progress_factor } - -- Only set timer for multirow progress mode - if progress_utils.is_multirow() then - runjobs_opt.timeout = 1000 - runjobs_opt.on_timer = function (running_indices) - -- Periodically refresh multirow progress to update elapsed time - progress_utils.refresh() - end - end async_runjobs(job_kind, jobgraph, runjobs_opt) os.cd(curdir) return true diff --git a/xmake/modules/private/check/checkers/clang/tidy.lua b/xmake/modules/private/check/checkers/clang/tidy.lua index 03568eb6e..963bd1bdc 100644 --- a/xmake/modules/private/check/checkers/clang/tidy.lua +++ b/xmake/modules/private/check/checkers/clang/tidy.lua @@ -160,14 +160,6 @@ function _check_sourcefiles(clang_tidy, sourcefiles, opt) comax = opt.jobs or os.default_njob(), showtips = false } - -- Only set timer for multirow progress mode - if progress.is_multirow() then - runjobs_opt.timeout = 1000 - runjobs_opt.on_timer = function (running_indices) - -- Periodically refresh multirow progress to update elapsed time - progress.refresh() - end - end runjobs("checker.tidy", function (index, total, job_opt) local sourcefile = sourcefiles[index] local tidy_argv = table.join(argv, {sourcefile}) |
