File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,22 @@ var runtime = isElectron() ? 'electron' : (isNwjs() ? 'node-webkit' : 'node')
1313var arch = process . env . npm_config_arch || os . arch ( )
1414var platform = process . env . npm_config_platform || os . platform ( )
1515var libc = process . env . LIBC || ( isAlpine ( platform ) ? 'musl' : 'glibc' )
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 ) : '' ) ) || ''
16+ let armv = process . env . ARM_VERSION ;
17+ if ( ! armv ) {
18+ if ( arch === 'arm64' ) {
19+ armv = '8' ;
20+ } else if ( arch === 'arm' ) {
21+ // ARMv7 detection patched to avoid arm_version === "default"
22+ // on other arm systems than arm64 ones
23+ if ( vars . arm_version === 'default' ) {
24+ armv = '7' ;
25+ } else {
26+ armv = vars . arm_version ;
27+ }
28+ } else {
29+ armv = '' ;
30+ }
31+ }
1832var uv = ( process . versions . uv || '' ) . split ( '.' ) [ 0 ]
1933
2034module . exports = load
You can’t perform that action at this time.
0 commit comments