commit ad2d49503b1242be501ab92832400ef344a6afae
parent 16d00819899260085ee10949012b07bf1c203db6
Author: Russ Cox <rsc@swtch.com>
Date: Fri, 16 Nov 2018 00:01:10 -0500
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:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git 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
diff --git a/dist/isum.awk b/dist/isum.awk
@@ -132,7 +132,7 @@ errors != 0 {
next
}
-/(up to date|nothing to see|assuming it will be|loop not entered)/ {
+/(up to date|nothing to see|assuming it will be|loop not entered|# WSYSTYPE)/ {
next
}