Signed-off-by: David Seifert <s...@gentoo.org> --- eclass/multilib-build.eclass | 9 +++++++++ 1 file changed, 9 insertions(+)
diff --git a/eclass/multilib-build.eclass b/eclass/multilib-build.eclass index 42efdc9def6..76948baf539 100644 --- a/eclass/multilib-build.eclass +++ b/eclass/multilib-build.eclass @@ -565,6 +565,15 @@ multilib_is_native_abi() { [[ ${COMPLETE_MULTILIB} == yes || ${ABI} == ${DEFAULT_ABI} ]] } +# @FUNCTION: multilib_native_use +# @USAGE: <flag> +# @DESCRIPTION: +# Like the standard use command, but only yields true if +# multilib_is_native_abi and use <flag> are true, otherwise false. +multilib_native_use() { + multilib_is_native_abi && use "$@" +} + # @FUNCTION: multilib_native_use_with # @USAGE: <flag> [<opt-name> [<opt-value>]] # @DESCRIPTION: -- 2.37.2