feat: Set MAKE_JOB_COUNT to available CPU length by default. (#133)

This commit is contained in:
Daniel Lando 2021-03-26 15:51:28 +01:00 committed by GitHub
parent ca89bf8c92
commit 93431471c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = [];