unixThresholds [wip]
This commit is contained in:
parent
18127b4526
commit
7282ea5f3b
12
lib/build.js
12
lib/build.js
@ -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');
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user