summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-01-29 22:51:15 +0100
committerMichał Górny <mgorny@gentoo.org>2021-01-29 22:58:39 +0100
commitfe7a64362986ee6d26b7bc120f1c70ca5c420ff8 (patch)
tree2513cdae148b0682b23eae2efc1537235a36fbc3 /sys-libs/compiler-rt-sanitizers
parentsys-libs/compiler-rt: don't build memory profilers (diff)
downloadgentoo-fe7a64362986ee6d26b7bc120f1c70ca5c420ff8.tar.gz
gentoo-fe7a64362986ee6d26b7bc120f1c70ca5c420ff8.tar.bz2
gentoo-fe7a64362986ee6d26b7bc120f1c70ca5c420ff8.zip
sys-libs/compiler-rt-sanitizers: Add a flag for memprof
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-libs/compiler-rt-sanitizers')
-rw-r--r--sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-12.0.0.9999.ebuild5
-rw-r--r--sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-12.0.0_rc1.ebuild3
-rw-r--r--sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-13.0.0.9999.ebuild3
-rw-r--r--sys-libs/compiler-rt-sanitizers/metadata.xml1
4 files changed, 8 insertions, 4 deletions
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
index 14dbd46a8dbc..52b037500853 100644
--- 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
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -14,7 +14,7 @@ SLOT="$(ver_cut 1-3)"
KEYWORDS=""
IUSE="+clang test elibc_glibc"
# base targets
-IUSE+=" +libfuzzer +profile +xray"
+IUSE+=" +libfuzzer +memprof +profile +xray"
# sanitizer targets, keep in sync with config-ix.cmake
# NB: ubsan, scudo deliberately match two entries
SANITIZER_FLAGS=(
@@ -123,6 +123,7 @@ src_configure() {
-DCOMPILER_RT_BUILD_BUILTINS=OFF
-DCOMPILER_RT_BUILD_CRT=OFF
-DCOMPILER_RT_BUILD_LIBFUZZER=$(usex libfuzzer)
+ -DCOMPILER_RT_BUILD_MEMPROF=$(usex memprof)
-DCOMPILER_RT_BUILD_PROFILE=$(usex profile)
-DCOMPILER_RT_BUILD_SANITIZERS="${want_sanitizer}"
-DCOMPILER_RT_BUILD_XRAY=$(usex xray)
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
index 4261329f9d3c..52b037500853 100644
--- 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
@@ -14,7 +14,7 @@ SLOT="$(ver_cut 1-3)"
KEYWORDS=""
IUSE="+clang test elibc_glibc"
# base targets
-IUSE+=" +libfuzzer +profile +xray"
+IUSE+=" +libfuzzer +memprof +profile +xray"
# sanitizer targets, keep in sync with config-ix.cmake
# NB: ubsan, scudo deliberately match two entries
SANITIZER_FLAGS=(
@@ -123,6 +123,7 @@ src_configure() {
-DCOMPILER_RT_BUILD_BUILTINS=OFF
-DCOMPILER_RT_BUILD_CRT=OFF
-DCOMPILER_RT_BUILD_LIBFUZZER=$(usex libfuzzer)
+ -DCOMPILER_RT_BUILD_MEMPROF=$(usex memprof)
-DCOMPILER_RT_BUILD_PROFILE=$(usex profile)
-DCOMPILER_RT_BUILD_SANITIZERS="${want_sanitizer}"
-DCOMPILER_RT_BUILD_XRAY=$(usex xray)
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
index 4261329f9d3c..52b037500853 100644
--- 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
@@ -14,7 +14,7 @@ SLOT="$(ver_cut 1-3)"
KEYWORDS=""
IUSE="+clang test elibc_glibc"
# base targets
-IUSE+=" +libfuzzer +profile +xray"
+IUSE+=" +libfuzzer +memprof +profile +xray"
# sanitizer targets, keep in sync with config-ix.cmake
# NB: ubsan, scudo deliberately match two entries
SANITIZER_FLAGS=(
@@ -123,6 +123,7 @@ src_configure() {
-DCOMPILER_RT_BUILD_BUILTINS=OFF
-DCOMPILER_RT_BUILD_CRT=OFF
-DCOMPILER_RT_BUILD_LIBFUZZER=$(usex libfuzzer)
+ -DCOMPILER_RT_BUILD_MEMPROF=$(usex memprof)
-DCOMPILER_RT_BUILD_PROFILE=$(usex profile)
-DCOMPILER_RT_BUILD_SANITIZERS="${want_sanitizer}"
-DCOMPILER_RT_BUILD_XRAY=$(usex xray)
diff --git a/sys-libs/compiler-rt-sanitizers/metadata.xml b/sys-libs/compiler-rt-sanitizers/metadata.xml
index 5f139415fce4..a5d8a2f90b20 100644
--- a/sys-libs/compiler-rt-sanitizers/metadata.xml
+++ b/sys-libs/compiler-rt-sanitizers/metadata.xml
@@ -8,6 +8,7 @@
<flag name='clang'>Force building using installed clang (rather
than the default CC/CXX).</flag>
<flag name='libfuzzer'>Build fuzzing runtime.</flag>
+ <flag name='memprof'>Build memory profiler runtime.</flag>
<flag name='profile'>Build profiling runtime.</flag>
<flag name='sanitize'>Build sanitizer runtimes.</flag>
<flag name='xray'>Build XRay runtime.</flag>