summaryrefslogtreecommitdiff
path: root/xmake/actions/require/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-09-07 00:55:33 +0800
committerruki <[email protected]>2021-09-07 00:55:33 +0800
commit0a271b992bb97a3d2e6b00d9facf1eb26ef2f899 (patch)
tree1c3d73587e2258e69350723093298d00adec38c3 /xmake/actions/require/xmake.lua
parent02411882d17b8a71ba900cd803dfc3b5ec612da7 (diff)
improve njob
Diffstat (limited to 'xmake/actions/require/xmake.lua')
-rw-r--r--xmake/actions/require/xmake.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/actions/require/xmake.lua b/xmake/actions/require/xmake.lua
index f33188f77..3ffd17fe3 100644
--- a/xmake/actions/require/xmake.lua
+++ b/xmake/actions/require/xmake.lua
@@ -46,7 +46,7 @@ task("require")
" $ xmake require --clean",
" $ xmake require --clean zlib tbox pcr*" }
, {'f', "force", "k", nil, "Force to reinstall all package dependencies." }
- , {'j', "jobs", "kv", tostring(math.ceil(os.cpuinfo().ncpu * 3 / 2)),
+ , {'j', "jobs", "kv", tostring(os.default_njob()),
"Set the number of parallel compilation jobs." }
, {nil, "linkjobs", "kv", nil, "Set the number of parallel link jobs." }
, {nil, "shallow", "k", nil, "Does not install dependent packages." }