sys-devel/clang: Fix respecting USE=debug for asserts, #614844
authorMichał Górny <mgorny@gentoo.org>
Fri, 14 Apr 2017 14:31:14 +0000 (16:31 +0200)
committerMichał Górny <mgorny@gentoo.org>
Fri, 14 Apr 2017 14:51:21 +0000 (16:51 +0200)
sys-devel/clang/clang-4.0.0-r2.ebuild [moved from sys-devel/clang/clang-4.0.0-r1.ebuild with 99% similarity]
sys-devel/clang/clang-9999.ebuild

similarity index 99%
rename from sys-devel/clang/clang-4.0.0-r1.ebuild
rename to sys-devel/clang/clang-4.0.0-r2.ebuild
index eaf9b27e3c51a43f4f0a84a1eae937864a18b840..94ecbba541a36ec8ea6a54a6d6b31964e88a0d9f 100644 (file)
@@ -157,6 +157,7 @@ multilib_src_configure() {
                -DLLVM_BUILD_TESTS=$(usex test)
 
                # these are not propagated reliably, so redefine them
+               -DLLVM_ENABLE_ASSERTIONS=$(usex debug)
                -DLLVM_ENABLE_EH=ON
                -DLLVM_ENABLE_RTTI=ON
 
index 05f378ffda76812e951c01668bad52c4ad01b4bb..d755a064a33978b1bc651495f743d0b2eb9de0c4 100644 (file)
@@ -160,6 +160,7 @@ multilib_src_configure() {
                -DLLVM_BUILD_TESTS=$(usex test)
 
                # these are not propagated reliably, so redefine them
+               -DLLVM_ENABLE_ASSERTIONS=$(usex debug)
                -DLLVM_ENABLE_EH=ON
                -DLLVM_ENABLE_RTTI=ON