commit:     83512a50b63d87b23cc1d47eb5392b4f5e15729e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 28 04:28:10 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Feb 28 04:28:35 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83512a50

sys-devel/clang: Reenable EH/RTTI in *.9999

This will also be the part of the next 16.x RC and 17.x snapshot.

Bug: https://bugs.gentoo.org/884193
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 sys-devel/clang/clang-16.0.0.9999.ebuild | 4 ++++
 sys-devel/clang/clang-17.0.0.9999.ebuild | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/sys-devel/clang/clang-16.0.0.9999.ebuild 
b/sys-devel/clang/clang-16.0.0.9999.ebuild
index df441961397a..4c59778e088a 100644
--- a/sys-devel/clang/clang-16.0.0.9999.ebuild
+++ b/sys-devel/clang/clang-16.0.0.9999.ebuild
@@ -270,6 +270,10 @@ multilib_src_configure() {
 
                -DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}"
 
+               # these are not propagated reliably, so redefine them
+               -DLLVM_ENABLE_EH=ON
+               -DLLVM_ENABLE_RTTI=ON
+
                -DCMAKE_DISABLE_FIND_PACKAGE_LibXml2=$(usex !xml)
                # libgomp support fails to find headers without explicit -I
                # furthermore, it provides only syntax checking

diff --git a/sys-devel/clang/clang-17.0.0.9999.ebuild 
b/sys-devel/clang/clang-17.0.0.9999.ebuild
index df441961397a..4c59778e088a 100644
--- a/sys-devel/clang/clang-17.0.0.9999.ebuild
+++ b/sys-devel/clang/clang-17.0.0.9999.ebuild
@@ -270,6 +270,10 @@ multilib_src_configure() {
 
                -DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}"
 
+               # these are not propagated reliably, so redefine them
+               -DLLVM_ENABLE_EH=ON
+               -DLLVM_ENABLE_RTTI=ON
+
                -DCMAKE_DISABLE_FIND_PACKAGE_LibXml2=$(usex !xml)
                # libgomp support fails to find headers without explicit -I
                # furthermore, it provides only syntax checking

Reply via email to