summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérôme Leclercq <[email protected]>2024-01-11 13:39:24 +0100
committerGitHub <[email protected]>2024-01-11 13:39:24 +0100
commita6d47198bfb14402a41d3e228414f8cad367d068 (patch)
treecdab699cee4cbd68b96b9e54b60272d7d99870d3
parent8db99f3c25f137b46444e4e4b12d874d3d2f8978 (diff)
xmake tools: pass --jobs to the xmake process
-rw-r--r--xmake/modules/package/tools/xmake.lua4
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