summaryrefslogtreecommitdiff
path: root/xmake/modules/private
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/modules/private
parent02411882d17b8a71ba900cd803dfc3b5ec612da7 (diff)
improve njob
Diffstat (limited to 'xmake/modules/private')
-rw-r--r--xmake/modules/private/xrepo/action/install.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/xrepo/action/install.lua b/xmake/modules/private/xrepo/action/install.lua
index ccd14c839..f6f111185 100644
--- a/xmake/modules/private/xrepo/action/install.lua
+++ b/xmake/modules/private/xrepo/action/install.lua
@@ -40,7 +40,7 @@ function menu_options()
"e.g.",
" - xrepo install -f \"vs_runtime=MD\" zlib",
" - xrepo install -f \"regex=true,thread=true\" boost"},
- {'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, "includes", "kv", nil, "Includes extra lua configuration files.",