File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -14,21 +14,22 @@ function cpu () {
1414}
1515
1616let family
17- if ( os ( ) === 'linux' ) {
18- const originalExclude = process . report . excludeNetwork
19- process . report . excludeNetwork = true
20- const report = process . report . getReport ( )
21- process . report . excludeNetwork = originalExclude
22- if ( report . header ?. glibcVersionRuntime ) {
23- family = 'glibc'
24- } else if ( Array . isArray ( report . sharedObjects ) && report . sharedObjects . some ( isMusl ) ) {
25- family = 'musl'
26- }
27- }
2817function libc ( osName ) {
2918 if ( osName !== 'linux' ) {
3019 return undefined
3120 }
21+
22+ if ( ! family ) {
23+ const originalExclude = process . report . excludeNetwork
24+ process . report . excludeNetwork = true
25+ const report = process . report . getReport ( )
26+ process . report . excludeNetwork = originalExclude
27+ if ( report . header ?. glibcVersionRuntime ) {
28+ family = 'glibc'
29+ } else if ( Array . isArray ( report . sharedObjects ) && report . sharedObjects . some ( isMusl ) ) {
30+ family = 'musl'
31+ }
32+ }
3233 return family
3334}
3435
You can’t perform that action at this time.
0 commit comments