summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xdevbuild.sh4
-rw-r--r--subr/build_init.subr3
2 files changed, 5 insertions, 2 deletions
diff --git a/devbuild.sh b/devbuild.sh
index 5eae0b9b..d0e1b0b7 100755
--- a/devbuild.sh
+++ b/devbuild.sh
@@ -23,8 +23,8 @@ devbuild_midipix() {
};
devbuild_all() {
- ./build.sh -a nt64 -b release -D minipix,rpm,zipdist -F ipv4 -p "${1:-auto}" -v &&\
- ./build.sh -a nt64 -b debug -D minipix,rpm,zipdist -F ipv4 -p "${1:-auto}" -v;
+ ./build.sh -a nt64 -b release -D minipix,rpm,zipdist -p max -v "${@}" &&\
+ ./build.sh -a nt64 -b debug -D minipix,rpm,zipdist -p max -v "${@}";
};
devbuild_mirror() {
diff --git a/subr/build_init.subr b/subr/build_init.subr
index e83e5afd..e6459a86 100644
--- a/subr/build_init.subr
+++ b/subr/build_init.subr
@@ -243,6 +243,9 @@ buildp_init_getopts() {
else
ARG_PARALLEL=$((${ARG_PARALLEL}/2));
fi; ;;
+ max) if ! ARG_PARALLEL="$(rtl_get_cpu_count)"; then
+ _rc=1; _status="failed to get CPU count.";
+ fi; ;;
"") ARG_PARALLEL=1; ;;
*) if ! rtl_isnumber "${ARG_PARALLEL}"; then
_rc=1; _status="invalid jobs count \`${ARG_PARALLEL}'.";