mmake only autoloads nproc if needed

This commit is contained in:
Jōshin 2023-12-17 15:07:10 -05:00
parent 77facc4f7b
commit 3654650c52
No known key found for this signature in database

View file

@ -23,7 +23,8 @@ esac
} }
local -a targs local -a targs
local -a flags local -a flags
local j=-j$(autoload -Uz nproc >/dev/null 2>&1 ; nproc) whence nproc >/dev/null 2>&1 || autoload -Uz nproc
local j=-j$(nproc)
while (( $# > 0 )); do while (( $# > 0 )); do
case $1 in case $1 in
-j*) j=$1; shift ;; -j*) j=$1; shift ;;