From 3654650c5256ccadef12f1f4054ee074cb5bfa4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C5=8Dshin?= Date: Sun, 17 Dec 2023 15:07:10 -0500 Subject: [PATCH] mmake only autoloads nproc if needed --- tool/zsh/mmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tool/zsh/mmake b/tool/zsh/mmake index e11aa9d29..139b2b9ea 100644 --- a/tool/zsh/mmake +++ b/tool/zsh/mmake @@ -23,7 +23,8 @@ esac } local -a targs 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 case $1 in -j*) j=$1; shift ;;