--without-snapshot for alpine builds as a temporary workaround

This commit is contained in:
Igor Klopov 2017-01-20 10:22:27 +03:00
parent 9f5b975965
commit d4b89a9511

View File

@ -61,6 +61,8 @@ async function compileOnUnix (nodeVersion, targetArch) {
// against packaged apps, hence v8_inspector is useless
const major = nodeVersion.match(/^v?(\d+)/)[1] | 0;
if (major >= 6) args.push('--without-inspector');
// https://github.com/mhart/alpine-node/blob/master/Dockerfile#L33
if (hostPlatform === 'alpine') args.push('--without-snapshot');
// TODO same for windows?
await spawn('./configure', args, { cwd: nodePath });
const make = hostPlatform === 'freebsd' ? 'gmake' : 'make';