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.
This commit is contained in:
Russ Cox 2018-11-16 00:01:10 -05:00
parent 16d0081989
commit ad2d49503b
2 changed files with 2 additions and 1 deletions

View file

@ -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