commit: 98f46d0de5bc6d9d608e3453c8e435d2e49e1a65 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Fri Apr 14 22:36:37 2017 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Fri Apr 14 22:38:54 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98f46d0d
sys-devel/clang: Fix passing -DNDEBUG to build, #614844 sys-devel/clang/{clang-4.0.0-r1.ebuild => clang-4.0.0-r2.ebuild} | 2 ++ sys-devel/clang/clang-9999.ebuild | 2 ++ 2 files changed, 4 insertions(+) diff --git a/sys-devel/clang/clang-4.0.0-r1.ebuild b/sys-devel/clang/clang-4.0.0-r2.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 eaf9b27e3c5..a127f9c864f 100644 --- a/sys-devel/clang/clang-4.0.0-r1.ebuild +++ b/sys-devel/clang/clang-4.0.0-r2.ebuild @@ -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 } diff --git a/sys-devel/clang/clang-9999.ebuild b/sys-devel/clang/clang-9999.ebuild index 05f378ffda7..9987f2bfa1a 100644 --- a/sys-devel/clang/clang-9999.ebuild +++ b/sys-devel/clang/clang-9999.ebuild @@ -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 }