sys-devel/clang: Fix enabling EH & RTTI reliably
authorMichał Górny <mgorny@gentoo.org>
Tue, 25 Oct 2016 15:40:22 +0000 (17:40 +0200)
committerMichał Górny <mgorny@gentoo.org>
Tue, 25 Oct 2016 16:42:07 +0000 (18:42 +0200)
sys-devel/clang/clang-9999.ebuild

index 65444a8b1ba9944d6d7b86bcfb2e114dc57d574a..a4bbcfa8360b3f5ec58c317044d17c596f108232 100644 (file)
@@ -145,6 +145,10 @@ multilib_src_configure() {
                # TODO: get them properly conditional
                #-DLLVM_BUILD_TESTS=$(usex test)
 
+               # 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