From d59dfc99c5c30e62ba4cc55c9eae72aab4a930bf Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 19 Jul 2023 01:02:33 +0100 Subject: gentoo auto-resync : 19:07:2023 - 01:02:32 --- eclass/ninja-utils.eclass | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'eclass/ninja-utils.eclass') diff --git a/eclass/ninja-utils.eclass b/eclass/ninja-utils.eclass index e6d8c9e6c0a9..5a211e81131d 100644 --- a/eclass/ninja-utils.eclass +++ b/eclass/ninja-utils.eclass @@ -3,8 +3,7 @@ # @ECLASS: ninja-utils.eclass # @MAINTAINER: -# Michał Górny -# Mike Gilbert +# base-system@gentoo.org # @AUTHOR: # Michał Górny # Mike Gilbert @@ -48,6 +47,12 @@ _NINJA_UTILS_ECLASS=1 # supposed to be set in make.conf. If unset, eninja() will convert # MAKEOPTS instead. +# @ECLASS_VARIABLE: NINJA_VERBOSE +# @USER_VARIABLE +# @DESCRIPTION: +# Set to OFF to disable verbose messages during compilation +: "${NINJA_VERBOSE:=ON}" + inherit multiprocessing case "${NINJA}" in @@ -80,7 +85,12 @@ get_NINJAOPTS() { # also supports being called via 'nonfatal'. eninja() { [[ -n "${NINJA_DEPEND}" ]] || ewarn "Unknown value '${NINJA}' for \${NINJA}" - set -- "${NINJA}" -v $(get_NINJAOPTS) "$@" + local v + case "${NINJA_VERBOSE}" in + OFF) ;; + *) v="-v" + esac + set -- "${NINJA}" ${v} $(get_NINJAOPTS) "$@" echo "$@" >&2 "$@" || die -n "${*} failed" } -- cgit v1.2.3