summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/scons.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/package/tools/scons.lua')
-rw-r--r--xmake/modules/package/tools/scons.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/scons.lua b/xmake/modules/package/tools/scons.lua
index 386645bba..0c197933f 100644
--- a/xmake/modules/package/tools/scons.lua
+++ b/xmake/modules/package/tools/scons.lua
@@ -86,7 +86,7 @@ end
function build(package, configs, opt)
opt = opt or {}
local buildir = opt.buildir or os.curdir()
- local njob = opt.jobs or option.get("jobs") or tostring(math.ceil(os.cpuinfo().ncpu * 3 / 2))
+ local njob = opt.jobs or option.get("jobs") or tostring(os.default_njob())
local scons = assert(find_tool("scons"), "scons not found!")
local argv = {"-C", buildir, "-j", njob}
configs = _get_configs(package, configs)