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:
parent
16d0081989
commit
ad2d49503b
1
INSTALL
1
INSTALL
@ -104,6 +104,7 @@ if [ `uname` = SunOS ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ `uname` = Darwin ]; then
|
if [ `uname` = Darwin ]; then
|
||||||
|
export NPROC=$(sysctl hw.ncpu | sed 's/hw.ncpu: //')
|
||||||
# On Darwin, uname -m -p cannot be trusted.
|
# On Darwin, uname -m -p cannot be trusted.
|
||||||
echo "* Running on Darwin: checking architecture..."
|
echo "* Running on Darwin: checking architecture..."
|
||||||
rm -f ./a.out
|
rm -f ./a.out
|
||||||
|
|||||||
2
dist/isum.awk
vendored
2
dist/isum.awk
vendored
@ -132,7 +132,7 @@ errors != 0 {
|
|||||||
next
|
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
|
next
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user