Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/clang/
Date: Tue, 28 Feb 2023 04:28:44
Message-Id: 1677558515.83512a50b63d87b23cc1d47eb5392b4f5e15729e.mgorny@gentoo
1 commit: 83512a50b63d87b23cc1d47eb5392b4f5e15729e
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 28 04:28:10 2023 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 28 04:28:35 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83512a50
7
8 sys-devel/clang: Reenable EH/RTTI in *.9999
9
10 This will also be the part of the next 16.x RC and 17.x snapshot.
11
12 Bug: https://bugs.gentoo.org/884193
13 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
14
15 sys-devel/clang/clang-16.0.0.9999.ebuild | 4 ++++
16 sys-devel/clang/clang-17.0.0.9999.ebuild | 4 ++++
17 2 files changed, 8 insertions(+)
18
19 diff --git a/sys-devel/clang/clang-16.0.0.9999.ebuild b/sys-devel/clang/clang-16.0.0.9999.ebuild
20 index df441961397a..4c59778e088a 100644
21 --- a/sys-devel/clang/clang-16.0.0.9999.ebuild
22 +++ b/sys-devel/clang/clang-16.0.0.9999.ebuild
23 @@ -270,6 +270,10 @@ multilib_src_configure() {
24
25 -DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}"
26
27 + # these are not propagated reliably, so redefine them
28 + -DLLVM_ENABLE_EH=ON
29 + -DLLVM_ENABLE_RTTI=ON
30 +
31 -DCMAKE_DISABLE_FIND_PACKAGE_LibXml2=$(usex !xml)
32 # libgomp support fails to find headers without explicit -I
33 # furthermore, it provides only syntax checking
34
35 diff --git a/sys-devel/clang/clang-17.0.0.9999.ebuild b/sys-devel/clang/clang-17.0.0.9999.ebuild
36 index df441961397a..4c59778e088a 100644
37 --- a/sys-devel/clang/clang-17.0.0.9999.ebuild
38 +++ b/sys-devel/clang/clang-17.0.0.9999.ebuild
39 @@ -270,6 +270,10 @@ multilib_src_configure() {
40
41 -DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}"
42
43 + # these are not propagated reliably, so redefine them
44 + -DLLVM_ENABLE_EH=ON
45 + -DLLVM_ENABLE_RTTI=ON
46 +
47 -DCMAKE_DISABLE_FIND_PACKAGE_LibXml2=$(usex !xml)
48 # libgomp support fails to find headers without explicit -I
49 # furthermore, it provides only syntax checking