summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--subr/build_init.subr6
1 files changed, 5 insertions, 1 deletions
diff --git a/subr/build_init.subr b/subr/build_init.subr
index 48e4fcf3..33c51e34 100644
--- a/subr/build_init.subr
+++ b/subr/build_init.subr
@@ -173,7 +173,11 @@ buildp_init_getopts() {
F) ARG_FETCH_FORCE=1; ;;
h) cat etc/build.usage; exit 0; ;;
p) ARG_PARALLEL="${OPTARG}"; ;;
- P) ARG_PARALLEL="auto"; ;;
+ P) ARG_PARALLEL="auto";
+ if [ -n "${2:-}" ]\
+ && rtl_isnumber "${2}"; then
+ _rc=1; _status="Error: maximum parallelisation job count is set with the \`-p jobs' option."; break
+ fi; ;;
r) ARG_RESTART="${OPTARG}"; ;;
R) ARG_RELAXED=1; ;;
*) cat etc/build.usage; exit 1; ;;