Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: python@g.o, "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 3/4] multilib-build: introduce multilib_for_best_abi().
Date: Sat, 02 Mar 2013 21:43:07
Message-Id: 1362260530-26141-4-git-send-email-mgorny@gentoo.org
In Reply to: [gentoo-dev] Further changes to multibuild.eclass by "Michał Górny"
1 ---
2 gx86/eclass/multilib-build.eclass | 12 ++++++++++++
3 1 file changed, 12 insertions(+)
4
5 diff --git a/gx86/eclass/multilib-build.eclass b/gx86/eclass/multilib-build.eclass
6 index b6409d8..0fe46a0 100644
7 --- a/gx86/eclass/multilib-build.eclass
8 +++ b/gx86/eclass/multilib-build.eclass
9 @@ -139,6 +139,18 @@ multilib_parallel_foreach_abi() {
10 multibuild_parallel_foreach_variant _multilib_multibuild_wrapper "${@}"
11 }
12
13 +# @FUNCTION: multilib_for_best_abi
14 +# @USAGE: <argv>...
15 +# @DESCRIPTION:
16 +# Runs the given command with setup for the 'best' (usually native) ABI.
17 +multilib_for_best_abi() {
18 + debug-print-function ${FUNCNAME} "${@}"
19 +
20 + local MULTIBUILD_VARIANTS=( $(multilib_get_enabled_abis) )
21 +
22 + multibuild_for_best_variant _multilib_multibuild_wrapper "${@}"
23 +}
24 +
25 # @FUNCTION: multilib_check_headers
26 # @DESCRIPTION:
27 # Check whether the header files are consistent between ABIs.
28 --
29 1.8.1.4