summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2022-09-04 13:20:31 +0200
committerDavid Seifert <soap@gentoo.org>2022-09-04 13:20:31 +0200
commita3ba1ae81bf951ea34a9f52aa23eb2b1a651bdd9 (patch)
treec8f9e5214c655c772b92862b6c549877de4a0b73 /eclass
parentdev-libs/intel-compute-runtime: add 22.35.24055 (diff)
downloadgentoo-a3ba1ae81bf951ea34a9f52aa23eb2b1a651bdd9.tar.gz
gentoo-a3ba1ae81bf951ea34a9f52aa23eb2b1a651bdd9.tar.bz2
gentoo-a3ba1ae81bf951ea34a9f52aa23eb2b1a651bdd9.zip
multilib-build.eclass: add multilib_native_use
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/multilib-build.eclass9
1 files changed, 9 insertions, 0 deletions
diff --git a/eclass/multilib-build.eclass b/eclass/multilib-build.eclass
index 42efdc9def61..76948baf5398 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: