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