mmake: -j$(nproc), passthrough o//

Now `mmake o/ape/ape.elf` works.
This commit is contained in:
Jōshin 2023-12-17 01:49:49 -05:00
parent 2b315626f3
commit b08b92248b
No known key found for this signature in database
2 changed files with 24 additions and 3 deletions

18
tool/zsh/nproc Normal file
View file

@ -0,0 +1,18 @@
[[ -x $(whence -p nproc) ]] && {
command nproc && {
unfunction nproc
return
}
}
[[ -x $(which sysctl) ]] && {
nproc() {
sysctl -n hw.ncpu
}
nproc && return
}
# TODO other platforms
echo nproc: no implementation found >&2
nproc() {
echo 2
}
nproc