diff options
| author | ruki <[email protected]> | 2024-01-11 21:09:45 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-01-11 21:09:45 +0800 |
| commit | 6822fc03d6c52fbf68a7571050f675f283b94a44 (patch) | |
| tree | 693481dedf237bc14c400668362e174ade11eee2 /xmake/modules/package/tools/xmake.lua | |
| parent | ec2f9493477c34c691bee2f38cc425ca68384760 (diff) | |
| parent | a6d47198bfb14402a41d3e228414f8cad367d068 (diff) | |
Merge pull request #4598 from SirLynix/patch-14
xmake tools: pass --jobs to the xmake subprocess
Diffstat (limited to 'xmake/modules/package/tools/xmake.lua')
| -rw-r--r-- | xmake/modules/package/tools/xmake.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/modules/package/tools/xmake.lua b/xmake/modules/package/tools/xmake.lua index 3f679ef7d..b9cca10c0 100644 --- a/xmake/modules/package/tools/xmake.lua +++ b/xmake/modules/package/tools/xmake.lua @@ -218,6 +218,10 @@ function _get_configs(package, configs, opt) if configs.kind == nil then table.insert(configs, "--kind=" .. (package:config("shared") and "shared" or "static")) end + local njob = opt.jobs or option.get("jobs") + if njob then + table.insert(configs, "--jobs=" .. njob) + end if package:is_plat("windows") then _get_configs_for_windows(package, configs, opt) elseif package:is_plat("android") then |
