sys-devel/clang: Fix passing -DNDEBUG to build, #614844
authorMichał Górny <mgorny@gentoo.org>
Fri, 14 Apr 2017 22:36:37 +0000 (00:36 +0200)
committerMichał Górny <mgorny@gentoo.org>
Fri, 14 Apr 2017 22:38:54 +0000 (00:38 +0200)
sys-devel/clang/clang-4.0.0-r2.ebuild [moved from sys-devel/clang/clang-4.0.0-r1.ebuild with 98% similarity]
sys-devel/clang/clang-9999.ebuild

similarity index 98%
rename from sys-devel/clang/clang-4.0.0-r1.ebuild
rename to sys-devel/clang/clang-4.0.0-r2.ebuild
index eaf9b27e3c51a43f4f0a84a1eae937864a18b840..a127f9c864f8d5ccc5d34ac47cc672ed747a341d 100644 (file)
@@ -206,6 +206,8 @@ multilib_src_configure() {
                )
        fi
 
+       # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844
+       use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG"
        cmake-utils_src_configure
 }
 
index 05f378ffda76812e951c01668bad52c4ad01b4bb..9987f2bfa1af7971d66b07260af55b9755325497 100644 (file)
@@ -209,6 +209,8 @@ multilib_src_configure() {
                )
        fi
 
+       # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844
+       use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG"
        cmake-utils_src_configure
 }