1 |
commit: da6ba7c216bc34569f3f8fa23535161b248cdcd4 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 2 11:47:51 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 3 06:04:04 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da6ba7c2 |
7 |
|
8 |
dev-util/lldb: Ensure NDEBUG correctly |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-util/lldb/lldb-13.0.0.9999.ebuild | 5 ++++- |
13 |
dev-util/lldb/lldb-13.0.0.ebuild | 5 ++++- |
14 |
dev-util/lldb/lldb-14.0.0.9999.ebuild | 5 ++++- |
15 |
3 files changed, 12 insertions(+), 3 deletions(-) |
16 |
|
17 |
diff --git a/dev-util/lldb/lldb-13.0.0.9999.ebuild b/dev-util/lldb/lldb-13.0.0.9999.ebuild |
18 |
index 394b6d66fc5..ce8729bdc59 100644 |
19 |
--- a/dev-util/lldb/lldb-13.0.0.9999.ebuild |
20 |
+++ b/dev-util/lldb/lldb-13.0.0.9999.ebuild |
21 |
@@ -12,7 +12,7 @@ HOMEPAGE="https://llvm.org/" |
22 |
LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" |
23 |
SLOT="0" |
24 |
KEYWORDS="" |
25 |
-IUSE="+libedit lzma ncurses +python test" |
26 |
+IUSE="debug +libedit lzma ncurses +python test" |
27 |
REQUIRED_USE=${PYTHON_REQUIRED_USE} |
28 |
RESTRICT="test" |
29 |
|
30 |
@@ -51,6 +51,9 @@ pkg_setup() { |
31 |
} |
32 |
|
33 |
src_configure() { |
34 |
+ # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 |
35 |
+ use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG" |
36 |
+ |
37 |
local mycmakeargs=( |
38 |
-DLLDB_ENABLE_CURSES=$(usex ncurses) |
39 |
-DLLDB_ENABLE_LIBEDIT=$(usex libedit) |
40 |
|
41 |
diff --git a/dev-util/lldb/lldb-13.0.0.ebuild b/dev-util/lldb/lldb-13.0.0.ebuild |
42 |
index 20f75db4f57..474e09e9cbd 100644 |
43 |
--- a/dev-util/lldb/lldb-13.0.0.ebuild |
44 |
+++ b/dev-util/lldb/lldb-13.0.0.ebuild |
45 |
@@ -12,7 +12,7 @@ HOMEPAGE="https://llvm.org/" |
46 |
LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" |
47 |
SLOT="0" |
48 |
KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
49 |
-IUSE="+libedit lzma ncurses +python test" |
50 |
+IUSE="debug +libedit lzma ncurses +python test" |
51 |
REQUIRED_USE=${PYTHON_REQUIRED_USE} |
52 |
RESTRICT="test" |
53 |
|
54 |
@@ -51,6 +51,9 @@ pkg_setup() { |
55 |
} |
56 |
|
57 |
src_configure() { |
58 |
+ # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 |
59 |
+ use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG" |
60 |
+ |
61 |
local mycmakeargs=( |
62 |
-DLLDB_ENABLE_CURSES=$(usex ncurses) |
63 |
-DLLDB_ENABLE_LIBEDIT=$(usex libedit) |
64 |
|
65 |
diff --git a/dev-util/lldb/lldb-14.0.0.9999.ebuild b/dev-util/lldb/lldb-14.0.0.9999.ebuild |
66 |
index 394b6d66fc5..ce8729bdc59 100644 |
67 |
--- a/dev-util/lldb/lldb-14.0.0.9999.ebuild |
68 |
+++ b/dev-util/lldb/lldb-14.0.0.9999.ebuild |
69 |
@@ -12,7 +12,7 @@ HOMEPAGE="https://llvm.org/" |
70 |
LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" |
71 |
SLOT="0" |
72 |
KEYWORDS="" |
73 |
-IUSE="+libedit lzma ncurses +python test" |
74 |
+IUSE="debug +libedit lzma ncurses +python test" |
75 |
REQUIRED_USE=${PYTHON_REQUIRED_USE} |
76 |
RESTRICT="test" |
77 |
|
78 |
@@ -51,6 +51,9 @@ pkg_setup() { |
79 |
} |
80 |
|
81 |
src_configure() { |
82 |
+ # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 |
83 |
+ use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG" |
84 |
+ |
85 |
local mycmakeargs=( |
86 |
-DLLDB_ENABLE_CURSES=$(usex ncurses) |
87 |
-DLLDB_ENABLE_LIBEDIT=$(usex libedit) |