unixThresholds [wip]

This commit is contained in:
igorklopov 2016-08-16 19:36:52 +03:00
parent 18127b4526
commit 7282ea5f3b

View File

@ -62,15 +62,19 @@ async function compileOnWindows (targetArch) {
return path.join(nodePath, 'Release/node.exe');
}
const unixThresholds = {
'v8_base/deps/v8/src/date.o.d.raw': 50
};
async function compileOnUnix (targetArch) {
const args = [];
const cpu = { x86: 'ia32', x64: 'x64',
armv6: 'arm', armv7: 'arm' }[targetArch];
args.push('--dest-cpu', cpu);
await spawn('./configure', args,
{ stdio: 'inherit', cwd: nodePath });
await spawn('make', [],
{ stdio: 'inherit', cwd: nodePath });
await spawn('./configure', args, { cwd: nodePath });
const promise = spawn('make', [], { cwd: nodePath });
progress(promise.child, unixThresholds);
await promise;
return path.join(nodePath, 'out/Release/node');
}