Skip to content

Commit c764234

Browse files
committed
Fix #76, armv6 detection
Signed-off-by: paulober <[email protected]>
1 parent 7a458c7 commit c764234

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

node-gyp-build.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ var runtime = isElectron() ? 'electron' : (isNwjs() ? 'node-webkit' : 'node')
1313
var arch = process.env.npm_config_arch || os.arch()
1414
var platform = process.env.npm_config_platform || os.platform()
1515
var libc = process.env.LIBC || (isAlpine(platform) ? 'musl' : 'glibc')
16-
var armv = process.env.ARM_VERSION || (arch === 'arm64' ? '8' : vars.arm_version) || ''
16+
// ARMv7 detection patched to avoid arm_version === "default" on other arm systems than arm64 ones
17+
var armv = process.env.ARM_VERSION || (arch === 'arm64' ? '8' : (arch === 'arm' ? (vars.arm_version === 'default' ? '7' : vars.arm_version) : '')) || ''
1718
var uv = (process.versions.uv || '').split('.')[0]
1819

1920
module.exports = load

0 commit comments

Comments
 (0)