commit: 367e23c07ea0a6102eb674f02b649885275dd8e8
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 16 09:08:44 2018 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Mar 16 09:32:35 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=367e23c0
sys-libs/llvm-libunwind: Fix running multilib tests
Fix tests to use multilib-wrapped compiler. Otherwise, the tests were
actually done using native ABI library which missed the point. Also,
add missing MULTILIB_USEDEP.
sys-libs/llvm-libunwind/llvm-libunwind-6.0.0.ebuild | 9 +++++++--
sys-libs/llvm-libunwind/llvm-libunwind-6.0.9999.ebuild | 9 +++++++--
sys-libs/llvm-libunwind/llvm-libunwind-9999.ebuild | 9 +++++++--
3 files changed, 21 insertions(+), 6 deletions(-)
diff --git a/sys-libs/llvm-libunwind/llvm-libunwind-6.0.0.ebuild
b/sys-libs/llvm-libunwind/llvm-libunwind-6.0.0.ebuild
index fcc113a63c9..fe3c0e9d642 100644
--- a/sys-libs/llvm-libunwind/llvm-libunwind-6.0.0.ebuild
+++ b/sys-libs/llvm-libunwind/llvm-libunwind-6.0.0.ebuild
@@ -29,9 +29,9 @@ RDEPEND="!sys-libs/libunwind"
# (but libcxx does not need to be built against it)
DEPEND="
>=sys-devel/llvm-6
- test? (
+ test? ( >=sys-devel/clang-3.9.0
sys-libs/libcxx[libunwind,${MULTILIB_USEDEP}]
- sys-libs/libcxxabi
+ sys-libs/libcxxabi[${MULTILIB_USEDEP}]
$(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]') )"
S=${WORKDIR}/${MY_P}
@@ -84,6 +84,11 @@ multilib_src_configure() {
}
multilib_src_test() {
+ local clang_path=$(type -P "${CHOST:+${CHOST}-}clang" 2>/dev/null)
+
+ [[ -n ${clang_path} ]] || die "Unable to find ${CHOST}-clang for tests"
+ sed -i -e "/cxx_under_test/s^\".*\"^\"${clang_path}\"^"
test/lit.site.cfg || die
+
cmake-utils_src_make check-unwind
}
diff --git a/sys-libs/llvm-libunwind/llvm-libunwind-6.0.9999.ebuild
b/sys-libs/llvm-libunwind/llvm-libunwind-6.0.9999.ebuild
index 6eb95d733fc..83db4453f60 100644
--- a/sys-libs/llvm-libunwind/llvm-libunwind-6.0.9999.ebuild
+++ b/sys-libs/llvm-libunwind/llvm-libunwind-6.0.9999.ebuild
@@ -28,9 +28,9 @@ RDEPEND="!sys-libs/libunwind"
# (but libcxx does not need to be built against it)
DEPEND="
>=sys-devel/llvm-6
- test? (
+ test? ( >=sys-devel/clang-3.9.0
sys-libs/libcxx[libunwind,${MULTILIB_USEDEP}]
- sys-libs/libcxxabi
+ sys-libs/libcxxabi[${MULTILIB_USEDEP}]
$(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]') )"
# least intrusive of all
@@ -84,6 +84,11 @@ multilib_src_configure() {
}
multilib_src_test() {
+ local clang_path=$(type -P "${CHOST:+${CHOST}-}clang" 2>/dev/null)
+
+ [[ -n ${clang_path} ]] || die "Unable to find ${CHOST}-clang for tests"
+ sed -i -e "/cxx_under_test/s^\".*\"^\"${clang_path}\"^"
test/lit.site.cfg || die
+
cmake-utils_src_make check-unwind
}
diff --git a/sys-libs/llvm-libunwind/llvm-libunwind-9999.ebuild
b/sys-libs/llvm-libunwind/llvm-libunwind-9999.ebuild
index 387b8c31086..238afe790e6 100644
--- a/sys-libs/llvm-libunwind/llvm-libunwind-9999.ebuild
+++ b/sys-libs/llvm-libunwind/llvm-libunwind-9999.ebuild
@@ -27,9 +27,9 @@ RDEPEND="!sys-libs/libunwind"
# (but libcxx does not need to be built against it)
DEPEND="
>=sys-devel/llvm-6
- test? (
+ test? ( >=sys-devel/clang-3.9.0
sys-libs/libcxx[libunwind,${MULTILIB_USEDEP}]
- sys-libs/libcxxabi
+ sys-libs/libcxxabi[${MULTILIB_USEDEP}]
$(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]') )"
# least intrusive of all
@@ -83,6 +83,11 @@ multilib_src_configure() {
}
multilib_src_test() {
+ local clang_path=$(type -P "${CHOST:+${CHOST}-}clang" 2>/dev/null)
+
+ [[ -n ${clang_path} ]] || die "Unable to find ${CHOST}-clang for tests"
+ sed -i -e "/cxx_under_test/s^\".*\"^\"${clang_path}\"^"
test/lit.site.cfg || die
+
cmake-utils_src_make check-unwind
}