1 |
commit: 582b7d154fe6d89a7c9901b5d0a89d0db0170f2c |
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:05 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=582b7d15 |
7 |
|
8 |
sys-libs/compiler-rt: Ensure NDEBUG correctly |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
sys-libs/compiler-rt/compiler-rt-13.0.0.9999.ebuild | 5 ++++- |
13 |
sys-libs/compiler-rt/compiler-rt-13.0.0.ebuild | 5 ++++- |
14 |
sys-libs/compiler-rt/compiler-rt-14.0.0.9999.ebuild | 5 ++++- |
15 |
3 files changed, 12 insertions(+), 3 deletions(-) |
16 |
|
17 |
diff --git a/sys-libs/compiler-rt/compiler-rt-13.0.0.9999.ebuild b/sys-libs/compiler-rt/compiler-rt-13.0.0.9999.ebuild |
18 |
index f726db78861..d6a1a16eb34 100644 |
19 |
--- a/sys-libs/compiler-rt/compiler-rt-13.0.0.9999.ebuild |
20 |
+++ b/sys-libs/compiler-rt/compiler-rt-13.0.0.9999.ebuild |
21 |
@@ -12,7 +12,7 @@ HOMEPAGE="https://llvm.org/" |
22 |
LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )" |
23 |
SLOT="$(ver_cut 1-3)" |
24 |
KEYWORDS="" |
25 |
-IUSE="+clang test" |
26 |
+IUSE="+clang debug test" |
27 |
RESTRICT="!test? ( test ) !clang? ( test )" |
28 |
|
29 |
CLANG_SLOT=${SLOT%%.*} |
30 |
@@ -60,6 +60,9 @@ test_compiler() { |
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 |
# pre-set since we need to pass it to cmake |
38 |
BUILD_DIR=${WORKDIR}/${P}_build |
39 |
|
40 |
|
41 |
diff --git a/sys-libs/compiler-rt/compiler-rt-13.0.0.ebuild b/sys-libs/compiler-rt/compiler-rt-13.0.0.ebuild |
42 |
index a3954df9f7d..92894146cb0 100644 |
43 |
--- a/sys-libs/compiler-rt/compiler-rt-13.0.0.ebuild |
44 |
+++ b/sys-libs/compiler-rt/compiler-rt-13.0.0.ebuild |
45 |
@@ -12,7 +12,7 @@ HOMEPAGE="https://llvm.org/" |
46 |
LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )" |
47 |
SLOT="$(ver_cut 1-3)" |
48 |
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~ppc-macos ~x64-macos" |
49 |
-IUSE="+clang test" |
50 |
+IUSE="+clang debug test" |
51 |
RESTRICT="!test? ( test ) !clang? ( test )" |
52 |
|
53 |
CLANG_SLOT=${SLOT%%.*} |
54 |
@@ -60,6 +60,9 @@ test_compiler() { |
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 |
# pre-set since we need to pass it to cmake |
62 |
BUILD_DIR=${WORKDIR}/${P}_build |
63 |
|
64 |
|
65 |
diff --git a/sys-libs/compiler-rt/compiler-rt-14.0.0.9999.ebuild b/sys-libs/compiler-rt/compiler-rt-14.0.0.9999.ebuild |
66 |
index f726db78861..d6a1a16eb34 100644 |
67 |
--- a/sys-libs/compiler-rt/compiler-rt-14.0.0.9999.ebuild |
68 |
+++ b/sys-libs/compiler-rt/compiler-rt-14.0.0.9999.ebuild |
69 |
@@ -12,7 +12,7 @@ HOMEPAGE="https://llvm.org/" |
70 |
LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )" |
71 |
SLOT="$(ver_cut 1-3)" |
72 |
KEYWORDS="" |
73 |
-IUSE="+clang test" |
74 |
+IUSE="+clang debug test" |
75 |
RESTRICT="!test? ( test ) !clang? ( test )" |
76 |
|
77 |
CLANG_SLOT=${SLOT%%.*} |
78 |
@@ -60,6 +60,9 @@ test_compiler() { |
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 |
# pre-set since we need to pass it to cmake |
86 |
BUILD_DIR=${WORKDIR}/${P}_build |