mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
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
2 changed files with 2 additions and 1 deletions
1
INSTALL
1
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
|
||||
|
|
2
dist/isum.awk
vendored
2
dist/isum.awk
vendored
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue