You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/09/05 19:25:30 UTC
[incubator-nuttx-testing] 02/02: Tweak CPU count logic for MacOS
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-testing.git
commit 0a6adc9f06a145efd7b679204bd67b082ab57f42
Author: Brennan Ashton <ba...@brennanashton.com>
AuthorDate: Fri Sep 4 13:02:31 2020 -0700
Tweak CPU count logic for MacOS
---
cibuild.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cibuild.sh b/cibuild.sh
index b737cb6..062a03b 100755
--- a/cibuild.sh
+++ b/cibuild.sh
@@ -383,7 +383,7 @@ function run_builds {
case $os in
Darwin)
- ncpus=$(sysctl -n machdep.cpu.thread_count)
+ ncpus=$(sysctl -n hw.ncpu)
;;
Linux)
ncpus=`grep -c ^processor /proc/cpuinfo`