aboutsummaryrefslogtreecommitdiff
path: root/INSTALL
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2018-11-16 00:01:10 -0500
committerRuss Cox <rsc@swtch.com>2018-11-16 00:03:24 -0500
commitad2d49503b1242be501ab92832400ef344a6afae (patch)
tree570718abece3a6e14dee4907f484280c0d6d7166 /INSTALL
parent16d00819899260085ee10949012b07bf1c203db6 (diff)
downloadplan9port-ad2d49503b1242be501ab92832400ef344a6afae.tar.gz
plan9port-ad2d49503b1242be501ab92832400ef344a6afae.tar.bz2
plan9port-ad2d49503b1242be501ab92832400ef344a6afae.zip
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.
Diffstat (limited to 'INSTALL')
-rwxr-xr-xINSTALL1
1 files changed, 1 insertions, 0 deletions
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