commit: 5a54cf24f38df1155f8242e6cc38366b7943e243
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 21 11:52:54 2022 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Jul 21 12:53:36 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a54cf24
sys-devel/clang: Add a workaround for broken test source in 15.x
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
sys-devel/clang/clang-15.0.0.9999.ebuild | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/sys-devel/clang/clang-15.0.0.9999.ebuild
b/sys-devel/clang/clang-15.0.0.9999.ebuild
index e1960cb92f18..7527c0955a4d 100644
--- a/sys-devel/clang/clang-15.0.0.9999.ebuild
+++ b/sys-devel/clang/clang-15.0.0.9999.ebuild
@@ -89,6 +89,14 @@ src_prepare() {
mkdir -p x/y || die
BUILD_DIR=${WORKDIR}/x/y/clang
+ # workaround another developer believing it's a great idea to use
+ # private LLVM headers in clang
+ # https://reviews.llvm.org/D120185
+ mkdir -p unittests/ASTMatchers/llvm/Config || die
+ cat > unittests/ASTMatchers/llvm/Config/config.h <<-EOF || die
+ #define ENABLE_BACKTRACES 1
+ EOF
+
llvm.org_src_prepare
# add Gentoo Portage Prefix for Darwin (see prefix-dirs.patch)