1 |
commit: fe7a64362986ee6d26b7bc120f1c70ca5c420ff8 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 29 21:51:15 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 29 21:58:39 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe7a6436 |
7 |
|
8 |
sys-libs/compiler-rt-sanitizers: Add a flag for memprof |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
.../compiler-rt-sanitizers/compiler-rt-sanitizers-12.0.0.9999.ebuild | 5 +++-- |
13 |
.../compiler-rt-sanitizers/compiler-rt-sanitizers-12.0.0_rc1.ebuild | 3 ++- |
14 |
.../compiler-rt-sanitizers/compiler-rt-sanitizers-13.0.0.9999.ebuild | 3 ++- |
15 |
sys-libs/compiler-rt-sanitizers/metadata.xml | 1 + |
16 |
4 files changed, 8 insertions(+), 4 deletions(-) |
17 |
|
18 |
diff --git a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-12.0.0.9999.ebuild b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-12.0.0.9999.ebuild |
19 |
index 14dbd46a8db..52b03750085 100644 |
20 |
--- a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-12.0.0.9999.ebuild |
21 |
+++ b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-12.0.0.9999.ebuild |
22 |
@@ -1,4 +1,4 @@ |
23 |
-# Copyright 1999-2020 Gentoo Authors |
24 |
+# Copyright 1999-2021 Gentoo Authors |
25 |
# Distributed under the terms of the GNU General Public License v2 |
26 |
|
27 |
EAPI=7 |
28 |
@@ -14,7 +14,7 @@ SLOT="$(ver_cut 1-3)" |
29 |
KEYWORDS="" |
30 |
IUSE="+clang test elibc_glibc" |
31 |
# base targets |
32 |
-IUSE+=" +libfuzzer +profile +xray" |
33 |
+IUSE+=" +libfuzzer +memprof +profile +xray" |
34 |
# sanitizer targets, keep in sync with config-ix.cmake |
35 |
# NB: ubsan, scudo deliberately match two entries |
36 |
SANITIZER_FLAGS=( |
37 |
@@ -123,6 +123,7 @@ src_configure() { |
38 |
-DCOMPILER_RT_BUILD_BUILTINS=OFF |
39 |
-DCOMPILER_RT_BUILD_CRT=OFF |
40 |
-DCOMPILER_RT_BUILD_LIBFUZZER=$(usex libfuzzer) |
41 |
+ -DCOMPILER_RT_BUILD_MEMPROF=$(usex memprof) |
42 |
-DCOMPILER_RT_BUILD_PROFILE=$(usex profile) |
43 |
-DCOMPILER_RT_BUILD_SANITIZERS="${want_sanitizer}" |
44 |
-DCOMPILER_RT_BUILD_XRAY=$(usex xray) |
45 |
|
46 |
diff --git a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-12.0.0_rc1.ebuild b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-12.0.0_rc1.ebuild |
47 |
index 4261329f9d3..52b03750085 100644 |
48 |
--- a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-12.0.0_rc1.ebuild |
49 |
+++ b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-12.0.0_rc1.ebuild |
50 |
@@ -14,7 +14,7 @@ SLOT="$(ver_cut 1-3)" |
51 |
KEYWORDS="" |
52 |
IUSE="+clang test elibc_glibc" |
53 |
# base targets |
54 |
-IUSE+=" +libfuzzer +profile +xray" |
55 |
+IUSE+=" +libfuzzer +memprof +profile +xray" |
56 |
# sanitizer targets, keep in sync with config-ix.cmake |
57 |
# NB: ubsan, scudo deliberately match two entries |
58 |
SANITIZER_FLAGS=( |
59 |
@@ -123,6 +123,7 @@ src_configure() { |
60 |
-DCOMPILER_RT_BUILD_BUILTINS=OFF |
61 |
-DCOMPILER_RT_BUILD_CRT=OFF |
62 |
-DCOMPILER_RT_BUILD_LIBFUZZER=$(usex libfuzzer) |
63 |
+ -DCOMPILER_RT_BUILD_MEMPROF=$(usex memprof) |
64 |
-DCOMPILER_RT_BUILD_PROFILE=$(usex profile) |
65 |
-DCOMPILER_RT_BUILD_SANITIZERS="${want_sanitizer}" |
66 |
-DCOMPILER_RT_BUILD_XRAY=$(usex xray) |
67 |
|
68 |
diff --git a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-13.0.0.9999.ebuild b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-13.0.0.9999.ebuild |
69 |
index 4261329f9d3..52b03750085 100644 |
70 |
--- a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-13.0.0.9999.ebuild |
71 |
+++ b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-13.0.0.9999.ebuild |
72 |
@@ -14,7 +14,7 @@ SLOT="$(ver_cut 1-3)" |
73 |
KEYWORDS="" |
74 |
IUSE="+clang test elibc_glibc" |
75 |
# base targets |
76 |
-IUSE+=" +libfuzzer +profile +xray" |
77 |
+IUSE+=" +libfuzzer +memprof +profile +xray" |
78 |
# sanitizer targets, keep in sync with config-ix.cmake |
79 |
# NB: ubsan, scudo deliberately match two entries |
80 |
SANITIZER_FLAGS=( |
81 |
@@ -123,6 +123,7 @@ src_configure() { |
82 |
-DCOMPILER_RT_BUILD_BUILTINS=OFF |
83 |
-DCOMPILER_RT_BUILD_CRT=OFF |
84 |
-DCOMPILER_RT_BUILD_LIBFUZZER=$(usex libfuzzer) |
85 |
+ -DCOMPILER_RT_BUILD_MEMPROF=$(usex memprof) |
86 |
-DCOMPILER_RT_BUILD_PROFILE=$(usex profile) |
87 |
-DCOMPILER_RT_BUILD_SANITIZERS="${want_sanitizer}" |
88 |
-DCOMPILER_RT_BUILD_XRAY=$(usex xray) |
89 |
|
90 |
diff --git a/sys-libs/compiler-rt-sanitizers/metadata.xml b/sys-libs/compiler-rt-sanitizers/metadata.xml |
91 |
index 5f139415fce..a5d8a2f90b2 100644 |
92 |
--- a/sys-libs/compiler-rt-sanitizers/metadata.xml |
93 |
+++ b/sys-libs/compiler-rt-sanitizers/metadata.xml |
94 |
@@ -8,6 +8,7 @@ |
95 |
<flag name='clang'>Force building using installed clang (rather |
96 |
than the default CC/CXX).</flag> |
97 |
<flag name='libfuzzer'>Build fuzzing runtime.</flag> |
98 |
+ <flag name='memprof'>Build memory profiler runtime.</flag> |
99 |
<flag name='profile'>Build profiling runtime.</flag> |
100 |
<flag name='sanitize'>Build sanitizer runtimes.</flag> |
101 |
<flag name='xray'>Build XRay runtime.</flag> |