diff options
-rw-r--r-- | eclass/cmake-utils.eclass | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass index 5958230e4685..d035e0459f23 100644 --- a/eclass/cmake-utils.eclass +++ b/eclass/cmake-utils.eclass @@ -659,14 +659,19 @@ _ninjaopts_from_makeopts() { set -- ${MAKEOPTS} while (( $# )); do case $1 in - -j|-l|-k) + -j|-l) ninjaopts+=( $1 $2 ) shift 2 ;; - -j*|-l*|-k*) + -j*|-l*) ninjaopts+=( $1 ) shift 1 ;; + -k) + # -k 0 = any number of tasks can fail + ninjaopts+=( $1 0 ) + shift 1 + ;; *) shift ;; esac done |