• [gentoo-dev] [PATCH 2/3] ninja-utils.eclass: use get_makeopts_{jobs,loa

    From Florian Schmaus@21:1/5 to All on Wed Oct 4 15:10:02 2023
    Signed-off-by: Florian Schmaus <flow@gentoo.org>
    ---
    eclass/ninja-utils.eclass | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    diff --git a/eclass/ninja-utils.eclass b/eclass/ninja-utils.eclass
    index 5a211e81131d..1af3df9f71e5 100644
    --- a/eclass/ninja-utils.eclass
    +++ b/eclass/ninja-utils.eclass
    @@ -1,3 +1,4 @@
    +
    # Copyright 1999-2023 Gentoo Authors
    # Distributed under the terms of the GNU General Public License v2

    @@ -72,7 +73,7 @@ esac
    # Get the value of NINJAOPTS, inferring them from MAKEOPTS if unset.
    get_NINJAOPTS() {
    if [[ -z ${NINJAOPTS+set} ]]; then
    - NINJAOPTS="-j$(makeopts_jobs "${MAKEOPTS}" 999) -l$(makeopts_loadavg "${MAKEOPTS}" 0)"
    + NINJAOPTS="-j$(get_makeopts_jobs 999) -l$(get_makeopts_loadavg 0)"
    fi
    echo "${NINJAOPTS}"
    }
    --
    2.41.0

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)