From c7642343c14145b52d6696e76b8350ebfb43a022 Mon Sep 17 00:00:00 2001 From: paulober <44974737+paulober@users.noreply.github.com> Date: Wed, 11 Sep 2024 11:11:11 +0100 Subject: [PATCH] Fix #76, armv6 detection Signed-off-by: paulober <44974737+paulober@users.noreply.github.com> --- node-gyp-build.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node-gyp-build.js b/node-gyp-build.js index 76b96e1..181f9a4 100644 --- a/node-gyp-build.js +++ b/node-gyp-build.js @@ -13,7 +13,8 @@ var runtime = isElectron() ? 'electron' : (isNwjs() ? 'node-webkit' : 'node') var arch = process.env.npm_config_arch || os.arch() var platform = process.env.npm_config_platform || os.platform() var libc = process.env.LIBC || (isAlpine(platform) ? 'musl' : 'glibc') -var armv = process.env.ARM_VERSION || (arch === 'arm64' ? '8' : vars.arm_version) || '' +// ARMv7 detection patched to avoid arm_version === "default" on other arm systems than arm64 ones +var armv = process.env.ARM_VERSION || (arch === 'arm64' ? '8' : (arch === 'arm' ? (vars.arm_version === 'default' ? '7' : vars.arm_version) : '')) || '' var uv = (process.versions.uv || '').split('.')[0] module.exports = load