mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-25 07:19:02 +00:00
mmake doesn't even run nproc unless it needs to
This commit is contained in:
parent
3654650c52
commit
c11c105270
1 changed files with 5 additions and 2 deletions
|
@ -23,8 +23,7 @@ esac
|
||||||
}
|
}
|
||||||
local -a targs
|
local -a targs
|
||||||
local -a flags
|
local -a flags
|
||||||
whence nproc >/dev/null 2>&1 || autoload -Uz nproc
|
local j
|
||||||
local j=-j$(nproc)
|
|
||||||
while (( $# > 0 )); do
|
while (( $# > 0 )); do
|
||||||
case $1 in
|
case $1 in
|
||||||
-j*) j=$1; shift ;;
|
-j*) j=$1; shift ;;
|
||||||
|
@ -33,6 +32,10 @@ while (( $# > 0 )); do
|
||||||
*) targs+=($1); shift ;;
|
*) targs+=($1); shift ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
[[ -z $j ]] && {
|
||||||
|
whence nproc >/dev/null 2>&1 || autoload -Uz nproc
|
||||||
|
j=-j$(nproc)
|
||||||
|
}
|
||||||
local make
|
local make
|
||||||
[[ -x /opt/cosmocc/bin/make ]] && make=/opt/cosmocc/bin/make
|
[[ -x /opt/cosmocc/bin/make ]] && make=/opt/cosmocc/bin/make
|
||||||
[[ -z $make ]] && make=build/bootstrap/make.com
|
[[ -z $make ]] && make=build/bootstrap/make.com
|
||||||
|
|
Loading…
Add table
Reference in a new issue