Skip to content

Commit d5a1bcc

Browse files
authored
Add fix for building against node 10 and 11 (#48)
1 parent f1f29ea commit d5a1bcc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ function build (target, runtime, opts, cb) {
189189
if (runtime === 'electron') {
190190
args.push('--runtime=electron')
191191
args.push('--dist-url=https://atom.io/download/electron')
192+
} else if (runtime === 'node' && [10, 11].some(buggedMajor => +target.split('.')[0] === buggedMajor)) {
193+
// work around a build bug in node versions 10 and 11 https://github.com/nodejs/node-gyp/issues/1457
194+
args.push('--build_v8_with_gn=false')
192195
}
193196

194197
if (opts.debug) {

0 commit comments

Comments
 (0)