diff options
| author | ruki <[email protected]> | 2025-04-09 23:44:19 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-04-09 23:44:19 +0800 |
| commit | 4109abcddf430a8fad253566b23db6f8c73b5366 (patch) | |
| tree | 9301389ac56ea342cded5274cd85e2fbea49721c /xmake/plugins/project/utils/target_cmds.lua | |
| parent | 77d90d253447ea6992f4f0a81d8df219e23b499c (diff) | |
ignore rules and stages
Diffstat (limited to 'xmake/plugins/project/utils/target_cmds.lua')
| -rw-r--r-- | xmake/plugins/project/utils/target_cmds.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/xmake/plugins/project/utils/target_cmds.lua b/xmake/plugins/project/utils/target_cmds.lua index c25a2c3e3..835117d50 100644 --- a/xmake/plugins/project/utils/target_cmds.lua +++ b/xmake/plugins/project/utils/target_cmds.lua @@ -150,17 +150,19 @@ function get_target_buildcmds(target, opt) job_kind = "build", buildcmds = buildcmds, with_stages = hashset.from(opt.stages or {}), - ignored_rules = hashset.from(opt.ignored_rules or {}), - progress = progress_wrapper}) + ignored_rules = hashset.from(opt.ignored_rules or {})}) if jobgraph and not jobgraph:empty() then + local total = jobgraph:size() + local index = 0 local jobqueue = jobgraph:build() while true do local job = jobqueue:getfree() if job then if job.run then - job.run() + job.run(index, total, {progress = progress_wrapper}) end jobqueue:remove(job) + index = index + 1 else break end |
