1 |
commit: b052863fec72b9eb6bca023bc36d289bfaa78f4c |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 29 23:39:09 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 29 23:39:09 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b052863f |
7 |
|
8 |
sys-libs/llvm-libunwind: Fix forcing test compiler in 14.x |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
sys-libs/llvm-libunwind/llvm-libunwind-14.0.0.9999.ebuild | 14 ++++++++++---- |
13 |
1 file changed, 10 insertions(+), 4 deletions(-) |
14 |
|
15 |
diff --git a/sys-libs/llvm-libunwind/llvm-libunwind-14.0.0.9999.ebuild b/sys-libs/llvm-libunwind/llvm-libunwind-14.0.0.9999.ebuild |
16 |
index c4a1e07a077f..a9e274cc99af 100644 |
17 |
--- a/sys-libs/llvm-libunwind/llvm-libunwind-14.0.0.9999.ebuild |
18 |
+++ b/sys-libs/llvm-libunwind/llvm-libunwind-14.0.0.9999.ebuild |
19 |
@@ -67,17 +67,23 @@ multilib_src_configure() { |
20 |
-DLIBUNWIND_USE_COMPILER_RT=${use_compiler_rt} |
21 |
) |
22 |
if use test; then |
23 |
- local clang_path=$(type -P "${CHOST:+${CHOST}-}clang" 2>/dev/null) |
24 |
- [[ -n ${clang_path} ]] || die "Unable to find ${CHOST}-clang for tests" |
25 |
- |
26 |
mycmakeargs+=( |
27 |
-DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" |
28 |
- -DLLVM_LIT_ARGS="$(get_lit_flags);--param=cxx_under_test=${clang_path}" |
29 |
+ -DLLVM_LIT_ARGS="$(get_lit_flags)" |
30 |
-DLIBUNWIND_LIBCXX_PATH="${WORKDIR}/libcxx" |
31 |
) |
32 |
fi |
33 |
|
34 |
cmake_src_configure |
35 |
+ |
36 |
+ if use test; then |
37 |
+ local clang_path=$(type -P "${CHOST:+${CHOST}-}clang" 2>/dev/null) |
38 |
+ [[ -n ${clang_path} ]] || die "Unable to find ${CHOST}-clang for tests" |
39 |
+ |
40 |
+ # meh, we need to override the compiler explicitly |
41 |
+ sed -e "/%{cxx}/s@, '.*'@, '${clang_path}'@" \ |
42 |
+ -i "${BUILD_DIR}"/test/lit.site.cfg || die |
43 |
+ fi |
44 |
} |
45 |
|
46 |
wrap_libcxxabi() { |