commit:     da6ba7c216bc34569f3f8fa23535161b248cdcd4
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Oct  2 11:47:51 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Oct  3 06:04:04 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da6ba7c2

dev-util/lldb: Ensure NDEBUG correctly

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-util/lldb/lldb-13.0.0.9999.ebuild | 5 ++++-
 dev-util/lldb/lldb-13.0.0.ebuild      | 5 ++++-
 dev-util/lldb/lldb-14.0.0.9999.ebuild | 5 ++++-
 3 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/dev-util/lldb/lldb-13.0.0.9999.ebuild 
b/dev-util/lldb/lldb-13.0.0.9999.ebuild
index 394b6d66fc5..ce8729bdc59 100644
--- a/dev-util/lldb/lldb-13.0.0.9999.ebuild
+++ b/dev-util/lldb/lldb-13.0.0.9999.ebuild
@@ -12,7 +12,7 @@ HOMEPAGE="https://llvm.org/";
 LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
 SLOT="0"
 KEYWORDS=""
-IUSE="+libedit lzma ncurses +python test"
+IUSE="debug +libedit lzma ncurses +python test"
 REQUIRED_USE=${PYTHON_REQUIRED_USE}
 RESTRICT="test"
 
@@ -51,6 +51,9 @@ pkg_setup() {
 }
 
 src_configure() {
+       # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844
+       use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG"
+
        local mycmakeargs=(
                -DLLDB_ENABLE_CURSES=$(usex ncurses)
                -DLLDB_ENABLE_LIBEDIT=$(usex libedit)

diff --git a/dev-util/lldb/lldb-13.0.0.ebuild b/dev-util/lldb/lldb-13.0.0.ebuild
index 20f75db4f57..474e09e9cbd 100644
--- a/dev-util/lldb/lldb-13.0.0.ebuild
+++ b/dev-util/lldb/lldb-13.0.0.ebuild
@@ -12,7 +12,7 @@ HOMEPAGE="https://llvm.org/";
 LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
 SLOT="0"
 KEYWORDS="~amd64 ~arm ~arm64 ~x86"
-IUSE="+libedit lzma ncurses +python test"
+IUSE="debug +libedit lzma ncurses +python test"
 REQUIRED_USE=${PYTHON_REQUIRED_USE}
 RESTRICT="test"
 
@@ -51,6 +51,9 @@ pkg_setup() {
 }
 
 src_configure() {
+       # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844
+       use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG"
+
        local mycmakeargs=(
                -DLLDB_ENABLE_CURSES=$(usex ncurses)
                -DLLDB_ENABLE_LIBEDIT=$(usex libedit)

diff --git a/dev-util/lldb/lldb-14.0.0.9999.ebuild 
b/dev-util/lldb/lldb-14.0.0.9999.ebuild
index 394b6d66fc5..ce8729bdc59 100644
--- a/dev-util/lldb/lldb-14.0.0.9999.ebuild
+++ b/dev-util/lldb/lldb-14.0.0.9999.ebuild
@@ -12,7 +12,7 @@ HOMEPAGE="https://llvm.org/";
 LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
 SLOT="0"
 KEYWORDS=""
-IUSE="+libedit lzma ncurses +python test"
+IUSE="debug +libedit lzma ncurses +python test"
 REQUIRED_USE=${PYTHON_REQUIRED_USE}
 RESTRICT="test"
 
@@ -51,6 +51,9 @@ pkg_setup() {
 }
 
 src_configure() {
+       # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844
+       use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG"
+
        local mycmakeargs=(
                -DLLDB_ENABLE_CURSES=$(usex ncurses)
                -DLLDB_ENABLE_LIBEDIT=$(usex libedit)

Reply via email to