--- file_not_specified_in_diff +++ file_not_specified_in_diff @@ -, +, @@ --- eclass/waf-utils.eclass +++ eclass/waf-utils.eclass @@ -29,6 +29,11 @@ dev-lang/python !dev-lang/python[-threads]" +# @ECLASS-VARIABLE: WAF_VERBOSE +# @DESCRIPTION: +# Set to OFF to disable verbose messages during compilation +: ${WAF_VERBOSE:=ON} + # @FUNCTION: waf-utils_src_configure # @DESCRIPTION: # General function for configuring with waf. @@ -55,10 +60,12 @@ # General function for compiling with waf. waf-utils_src_compile() { debug-print-function ${FUNCNAME} "$@" + local _mywafconfig + [[ "${WAF_VERBOSE}" ]] && _mywafconfig="-v" local jobs="--jobs=$(makeopts_jobs)" - echo "\"${WAF_BINARY}\" build ${jobs}" - "${WAF_BINARY}" ${jobs} || die "build failed" + echo "\"${WAF_BINARY}\" build ${_mywafconfig} ${jobs}" + "${WAF_BINARY}" ${_mywafconfig} ${jobs} || die "build failed" } # @FUNCTION: waf-utils_src_install