diff options
| author | ruki <[email protected]> | 2025-08-20 00:50:38 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-08-20 00:50:38 +0800 |
| commit | 573782c949ecf6f0c179822e6003f1075fb37018 (patch) | |
| tree | f704d1b2b31492a7c9a0dee5b6289b3c50bed2fa | |
| parent | d92f86baceb1092b78446ef65d3cb55483ea1540 (diff) | |
continue to improve comax
| -rw-r--r-- | xmake/modules/private/action/build/target.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/private/action/build/target.lua b/xmake/modules/private/action/build/target.lua index 2349f35b7..444dfc18e 100644 --- a/xmake/modules/private/action/build/target.lua +++ b/xmake/modules/private/action/build/target.lua @@ -787,7 +787,7 @@ function run_targetjobs(targets_root, opt) if errors and progress.showing_without_scroll() then print("") end - end, comax = option.get("jobs") or 1, curdir = curdir, distcc = opt.distcc, progress_factor = opt.progress_factor}) + end, comax = option.get("jobs") or os.default_njob(), curdir = curdir, distcc = opt.distcc, progress_factor = opt.progress_factor}) os.cd(curdir) return true end @@ -805,7 +805,7 @@ function run_filejobs(targets_root, opt) if errors and progress.showing_without_scroll() then print("") end - end, comax = option.get("jobs") or 1, curdir = curdir, distcc = opt.distcc, progress_factor = opt.progress_factor}) + end, comax = option.get("jobs") or os.default_njob(), curdir = curdir, distcc = opt.distcc, progress_factor = opt.progress_factor}) os.cd(curdir) return true end |
