enable compilation of node 7 for arm, but disable inspector

This commit is contained in:
Igor Klopov 2016-10-07 20:23:27 +03:00
parent 7d3bab1a4b
commit 5331250087
2 changed files with 2 additions and 5 deletions

View File

@ -58,9 +58,9 @@ async function compileOnUnix (nodeVersion, targetArch) {
// GLIBCXX_3.4.18 on some systems
// also we don't support any kind of debugging
// against packaged apps, hence v8_inspector is useless
if (/^v?6/.test(nodeVersion)) args.push('--without-inspector');
const major = nodeVersion.match(/^v?(\d+)/)[1] | 0;
if (major >= 6) args.push('--without-inspector');
// TODO same for windows?
// TODO same for node 7 and up?
await spawn('./configure', args, { cwd: nodePath });
const make = process.platform === 'freebsd' ? 'gmake' : 'make';
const promise = spawn(make, [], { cwd: nodePath });

View File

@ -19,9 +19,6 @@ export function dontBuild (nodeVersion, targetPlatform, targetArch) {
// official node 0.12 does not compile on arm
if (/^v?0/.test(nodeVersion) &&
/^arm/.test(targetArch)) return true;
// same for node 7 beta
if (/^v?7/.test(nodeVersion) &&
/^arm/.test(targetArch)) return true;
// some obstacles on freebsd
if (targetPlatform === 'freebsd' &&
targetArch === 'x86') return true;