From 5f0a252faeb70fae1444417d249f26ec73bc9fd9 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Fri, 20 Dec 2019 16:37:48 +0000 Subject: On non Linux systems, (g)make distrib stops halfway because of QEMU not supported. Symplifying cores counting data gathering. --- unicorn_mode/build_unicorn_support.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'unicorn_mode') diff --git a/unicorn_mode/build_unicorn_support.sh b/unicorn_mode/build_unicorn_support.sh index 1c176bca..e46cf54f 100755 --- a/unicorn_mode/build_unicorn_support.sh +++ b/unicorn_mode/build_unicorn_support.sh @@ -73,19 +73,19 @@ if [ "$PLT" = "Linux" ]; then fi if [ "$PLT" = "Darwin" ]; then - CORES=`sysctl hw.ncpu | cut -d' ' -f2` + CORES=`sysctl -n hw.ncpu` TARCMD=tar fi if [ "$PLT" = "FreeBSD" ]; then MAKECMD=gmake - CORES=`sysctl hw.ncpu | cut -d' ' -f2` + CORES=`sysctl -n hw.ncpu` TARCMD=gtar fi if [ "$PLT" = "NetBSD" ] || [ "$PLT" = "OpenBSD" ]; then MAKECMD=gmake - CORES=`sysctl hw.ncpu | cut -d'=' -f2` + CORES=`sysctl -n hw.ncpu` TARCMD=gtar fi -- cgit 1.4.1