commit:     761f99ae251bbedafe1ad076b77023772291dc44
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 20 09:09:17 2016 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Nov 20 10:09:06 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=761f99ae

sys-devel/clang-runtime: Add multilib propagation flags

Add multilib flags and use them to propagate ABI support to runtime
packages. This makes it possible to reliably enforce support for
a particular ABI via the central package.

 sys-devel/clang-runtime/clang-runtime-3.9.0.ebuild | 6 ++++--
 sys-devel/clang-runtime/clang-runtime-9999.ebuild  | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/sys-devel/clang-runtime/clang-runtime-3.9.0.ebuild 
b/sys-devel/clang-runtime/clang-runtime-3.9.0.ebuild
index 29c4a2d..d2b06e9 100644
--- a/sys-devel/clang-runtime/clang-runtime-3.9.0.ebuild
+++ b/sys-devel/clang-runtime/clang-runtime-3.9.0.ebuild
@@ -4,6 +4,8 @@
 
 EAPI=6
 
+inherit multilib-build
+
 DESCRIPTION="Meta-ebuild for clang runtime libraries"
 HOMEPAGE="http://clang.llvm.org/";
 SRC_URI=""
@@ -15,5 +17,5 @@ IUSE="libcxx openmp"
 
 # compiler-rt is installed unconditionally
 RDEPEND="
-       libcxx? ( ~sys-libs/libcxx-${PV} )
-       openmp? ( ~sys-libs/libomp-${PV} )"
+       libcxx? ( ~sys-libs/libcxx-${PV}[${MULTILIB_USEDEP}] )
+       openmp? ( ~sys-libs/libomp-${PV}[${MULTILIB_USEDEP}] )"

diff --git a/sys-devel/clang-runtime/clang-runtime-9999.ebuild 
b/sys-devel/clang-runtime/clang-runtime-9999.ebuild
index a29a541..d224ca0 100644
--- a/sys-devel/clang-runtime/clang-runtime-9999.ebuild
+++ b/sys-devel/clang-runtime/clang-runtime-9999.ebuild
@@ -4,6 +4,8 @@
 
 EAPI=6
 
+inherit multilib-build
+
 DESCRIPTION="Meta-ebuild for clang runtime libraries"
 HOMEPAGE="http://clang.llvm.org/";
 SRC_URI=""
@@ -18,7 +20,7 @@ RDEPEND="
                ~sys-libs/compiler-rt-${PV}
                sanitize? ( ~sys-libs/compiler-rt-sanitizers-${PV} )
        )
-       libcxx? ( ~sys-libs/libcxx-${PV} )
-       openmp? ( ~sys-libs/libomp-${PV} )"
+       libcxx? ( ~sys-libs/libcxx-${PV}[${MULTILIB_USEDEP}] )
+       openmp? ( ~sys-libs/libomp-${PV}[${MULTILIB_USEDEP}] )"
 
 REQUIRED_USE="sanitize? ( compiler-rt )"

Reply via email to