File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -57,9 +57,15 @@ exports.isAndroid = process.platform === 'android';
57
57
exports . isIOS = process . platform === 'ios' ;
58
58
59
59
exports . enoughTestMem = os . totalmem ( ) > 0x40000000 ; /* 1 Gb */
60
- const cpus = os . cpus ( ) ;
61
- exports . enoughTestCpu = Array . isArray ( cpus ) &&
62
- ( cpus . length > 1 || cpus [ 0 ] . speed > 999 ) ;
60
+
61
+ if ( exports . isAndroid || exports . isIOS ) {
62
+ // On mobile platforms, CPU information might be unavailable.
63
+ exports . enoughTestCpu = true ;
64
+ } else {
65
+ const cpus = os . cpus ( ) ;
66
+ exports . enoughTestCpu = Array . isArray ( cpus ) &&
67
+ ( cpus . length > 1 || cpus [ 0 ] . speed > 999 ) ;
68
+ }
63
69
64
70
exports . rootDir = exports . isWindows ? 'c:\\' : '/' ;
65
71
exports . buildType = process . config . target_defaults . default_configuration ;
You can’t perform that action at this time.
0 commit comments