summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-04-27 09:06:40 +0200
committerMichał Górny <mgorny@gentoo.org>2024-04-27 09:06:40 +0200
commit36a35d962ee5a3886a87d3ce0062260937498870 (patch)
tree9cedc412b0de97e367d79b11eb71bb722b9baa39 /sys-libs/compiler-rt-sanitizers
parentsys-libs/compiler-rt: Disable COMPILER_RT_BUILD_CTX_PROFILE (diff)
downloadgentoo-36a35d962ee5a3886a87d3ce0062260937498870.tar.gz
gentoo-36a35d962ee5a3886a87d3ce0062260937498870.tar.bz2
gentoo-36a35d962ee5a3886a87d3ce0062260937498870.zip
sys-libs/compiler-rt-sanitizers: Add a ctx-profile flag
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-19.0.0.9999.ebuild3
-rw-r--r--sys-libs/compiler-rt-sanitizers/metadata.xml1
2 files changed, 3 insertions, 1 deletions
diff --git a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-19.0.0.9999.ebuild b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-19.0.0.9999.ebuild
index 57f868d54be6..d1fd7251ab83 100644
--- a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-19.0.0.9999.ebuild
+++ b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-19.0.0.9999.ebuild
@@ -13,7 +13,7 @@ LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )"
SLOT="${LLVM_MAJOR}"
IUSE="+abi_x86_32 abi_x86_64 +clang +debug test"
# base targets
-IUSE+=" +libfuzzer +memprof +orc +profile +xray"
+IUSE+=" +ctx-profile +libfuzzer +memprof +orc +profile +xray"
# sanitizer targets, keep in sync with config-ix.cmake
# NB: ubsan, scudo deliberately match two entries
SANITIZER_FLAGS=(
@@ -133,6 +133,7 @@ src_configure() {
# builtins & crt installed by sys-libs/compiler-rt
-DCOMPILER_RT_BUILD_BUILTINS=OFF
-DCOMPILER_RT_BUILD_CRT=OFF
+ -DCOMPILER_RT_BUILD_CTX_PROFILE=$(usex ctx-profile)
-DCOMPILER_RT_BUILD_LIBFUZZER=$(usex libfuzzer)
-DCOMPILER_RT_BUILD_MEMPROF=$(usex memprof)
-DCOMPILER_RT_BUILD_ORC=$(usex orc)
diff --git a/sys-libs/compiler-rt-sanitizers/metadata.xml b/sys-libs/compiler-rt-sanitizers/metadata.xml
index 16744cf2f873..7ee670649a4a 100644
--- a/sys-libs/compiler-rt-sanitizers/metadata.xml
+++ b/sys-libs/compiler-rt-sanitizers/metadata.xml
@@ -7,6 +7,7 @@
<use>
<flag name="clang">Force building using installed clang (rather
than the default CC/CXX).</flag>
+ <flag name="ctx-profile">Build ctx profiling runtime.</flag>
<flag name="libfuzzer">Build fuzzing runtime.</flag>
<flag name="memprof">Build memory profiler runtime.</flag>
<flag name="orc">Build ORC runtime.</flag>