File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,8 @@ NAN_METHOD(GetCPUInfo) {
113
113
SET_NUM (" part" , details.part );
114
114
SET_NUM (" revision" , details.revision );
115
115
SET_VAL (" flags" , GenerateFlags (&details.features ));
116
- #elif defined(CPU_FEATURES_ARCH_AARCH64)
116
+ // M1 mac support is currently missing in cpu_features
117
+ #elif defined(CPU_FEATURES_ARCH_AARCH64) && !defined(CPU_FEATURES_OS_MACOS)
117
118
const Aarch64Info details = GetAarch64Info ();
118
119
SET_STR (" arch" , " aarch64" );
119
120
SET_NUM (" implementer" , details.implementer );
Original file line number Diff line number Diff line change @@ -8,4 +8,5 @@ console.log(info);
8
8
assert ( typeof info === 'object' && info !== null ) ;
9
9
assert ( typeof info . arch === 'string' && info . arch ) ;
10
10
assert ( typeof info . flags === 'object' && info . flags !== null ) ;
11
- assert ( Object . keys ( info ) . length > 2 ) ; // Assume we are on a known platform
11
+ if ( process . platform !== 'darwin' && process . arch !== 'arm64' )
12
+ assert ( Object . keys ( info ) . length > 2 ) ; // Assume we are on a known platform
You can’t perform that action at this time.
0 commit comments