Build: correct forwarding jobs argument to make_deps_wrapper.sh
This commit is contained in:
parent
5215543280
commit
1fd0c80725
|
@ -29,18 +29,18 @@ if [[ -z "${MY_MAKE_CALL_LEVEL}" ]]; then
|
||||||
for i in "$@"; do
|
for i in "$@"; do
|
||||||
case $i in
|
case $i in
|
||||||
-j*)
|
-j*)
|
||||||
MY_JOBS_ARG=$i
|
export MY_JOBS_ARG=$i
|
||||||
if [ "$MY_JOBS_ARG" = "-j" ]; then
|
if [ "$MY_JOBS_ARG" = "-j" ]; then
|
||||||
add_next=1
|
add_next=1
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
--jobs=*)
|
--jobs=*)
|
||||||
shift # past argument=value
|
shift # past argument=value
|
||||||
MY_JOBS_ARG=$i
|
export MY_JOBS_ARG=$i
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
if (( $add_next == 1 )); then
|
if (( $add_next == 1 )); then
|
||||||
MY_JOBS_ARG="$MY_JOBS_ARG $i"
|
export MY_JOBS_ARG="$MY_JOBS_ARG $i"
|
||||||
add_next=0
|
add_next=0
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue