feat: Set MAKE_JOB_COUNT to available CPU length by default. (#133)
This commit is contained in:
parent
ca89bf8c92
commit
93431471c6
@ -59,7 +59,7 @@ async function compileOnWindows (nodeVersion, targetArch) {
|
||||
return path.join(nodePath, 'out/Release/node.exe');
|
||||
}
|
||||
|
||||
const { MAKE_JOB_COUNT = '1' } = process.env;
|
||||
const { MAKE_JOB_COUNT = require('os').cpus().length } = process.env;
|
||||
|
||||
async function compileOnUnix (nodeVersion, targetArch) {
|
||||
const args = [];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user