From ad2d49503b1242be501ab92832400ef344a6afae Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 16 Nov 2018 00:01:10 -0500 Subject: INSTALL: set $NPROC on macOS My MacBook Pro has hw.ncpu=12, so set NPROC=12. Speeds up INSTALL dramatically. Should probably add similar code to other OSes. Also silence rio warning from earlier commit. --- INSTALL | 1 + 1 file changed, 1 insertion(+) (limited to 'INSTALL') diff --git a/INSTALL b/INSTALL index bfb7f657..bfb0d5d7 100755 --- a/INSTALL +++ b/INSTALL @@ -104,6 +104,7 @@ if [ `uname` = SunOS ]; then fi if [ `uname` = Darwin ]; then + export NPROC=$(sysctl hw.ncpu | sed 's/hw.ncpu: //') # On Darwin, uname -m -p cannot be trusted. echo "* Running on Darwin: checking architecture..." rm -f ./a.out -- cgit v1.2.3