Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/lld/
Date: Sun, 03 Oct 2021 06:04:14
Message-Id: 1633241043.97344eb19de03e825c7b2b099479eb1e63b96b1b.mgorny@gentoo
1 commit: 97344eb19de03e825c7b2b099479eb1e63b96b1b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 2 11:47:50 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 3 06:04:03 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97344eb1
7
8 sys-devel/lld: Ensure NDEBUG correctly
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 sys-devel/lld/lld-13.0.0.9999.ebuild | 5 ++++-
13 sys-devel/lld/lld-13.0.0.ebuild | 5 ++++-
14 sys-devel/lld/lld-14.0.0.9999.ebuild | 5 ++++-
15 3 files changed, 12 insertions(+), 3 deletions(-)
16
17 diff --git a/sys-devel/lld/lld-13.0.0.9999.ebuild b/sys-devel/lld/lld-13.0.0.9999.ebuild
18 index 68762b0a03c..8bcce2b3022 100644
19 --- a/sys-devel/lld/lld-13.0.0.9999.ebuild
20 +++ b/sys-devel/lld/lld-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="test"
26 +IUSE="debug test"
27 RESTRICT="!test? ( test )"
28
29 RDEPEND="~sys-devel/llvm-${PV}"
30 @@ -48,6 +48,9 @@ src_unpack() {
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 -DBUILD_SHARED_LIBS=ON
39 -DLLVM_INCLUDE_TESTS=$(usex test)
40
41 diff --git a/sys-devel/lld/lld-13.0.0.ebuild b/sys-devel/lld/lld-13.0.0.ebuild
42 index 28e940174a8..26c283fd648 100644
43 --- a/sys-devel/lld/lld-13.0.0.ebuild
44 +++ b/sys-devel/lld/lld-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 ~ppc ~ppc64 ~riscv ~x86"
49 -IUSE="test"
50 +IUSE="debug test"
51 RESTRICT="!test? ( test )"
52
53 RDEPEND="~sys-devel/llvm-${PV}"
54 @@ -48,6 +48,9 @@ src_unpack() {
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 -DBUILD_SHARED_LIBS=ON
63 -DLLVM_INCLUDE_TESTS=$(usex test)
64
65 diff --git a/sys-devel/lld/lld-14.0.0.9999.ebuild b/sys-devel/lld/lld-14.0.0.9999.ebuild
66 index 68762b0a03c..8bcce2b3022 100644
67 --- a/sys-devel/lld/lld-14.0.0.9999.ebuild
68 +++ b/sys-devel/lld/lld-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="test"
74 +IUSE="debug test"
75 RESTRICT="!test? ( test )"
76
77 RDEPEND="~sys-devel/llvm-${PV}"
78 @@ -48,6 +48,9 @@ src_unpack() {
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 -DBUILD_SHARED_LIBS=ON
87 -DLLVM_INCLUDE_TESTS=$(usex test)