summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/autoconf.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-01-12 23:01:38 +0800
committerruki <[email protected]>2021-01-12 23:01:38 +0800
commit1d7ff7a14fd27aa6164d43a62a66a516f574978b (patch)
treec7802081086a8c751702e7a984fd458f7045623b /xmake/modules/package/tools/autoconf.lua
parentde0f58af5a504ac72e7c23632fafdd5abdf0e771 (diff)
pass jobs for xrepo
Diffstat (limited to 'xmake/modules/package/tools/autoconf.lua')
-rw-r--r--xmake/modules/package/tools/autoconf.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/autoconf.lua b/xmake/modules/package/tools/autoconf.lua
index 759c6da5c..0f50bbb6d 100644
--- a/xmake/modules/package/tools/autoconf.lua
+++ b/xmake/modules/package/tools/autoconf.lua
@@ -234,7 +234,7 @@ function install(package, configs, opt)
-- do make and install
opt = opt or {}
- local njob = opt.jobs or tostring(math.ceil(os.cpuinfo().ncpu * 3 / 2))
+ local njob = opt.jobs or option.get("jobs") or tostring(math.ceil(os.cpuinfo().ncpu * 3 / 2))
local argv = {"-j" .. njob}
if option.get("verbose") then
table.insert(argv, "V=1")