aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstefson <herrtimson@yahoo.de>2019-01-19 09:49:59 +0100
committerAnthony G. Basile <blueness@gentoo.org>2019-01-23 14:28:39 -0500
commite434cf4a9620f5bc8e156896bcfb2755f7ebe17d (patch)
treeb6af81c90f2f2949a1abfbafaaf22ba053db2c33 /sys-libs
parentx11-base/xorg-server: sync with tree (diff)
downloadmusl-e434cf4a9620f5bc8e156896bcfb2755f7ebe17d.tar.gz
musl-e434cf4a9620f5bc8e156896bcfb2755f7ebe17d.tar.bz2
musl-e434cf4a9620f5bc8e156896bcfb2755f7ebe17d.zip
sys-libs/compiler-rt-sanitizers: sync with tree
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-6.0.1.ebuild14
-rw-r--r--sys-libs/compiler-rt-sanitizers/metadata.xml4
2 files changed, 12 insertions, 6 deletions
diff --git a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-6.0.1.ebuild b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-6.0.1.ebuild
index 7fe9367..f9dd2c1 100644
--- a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-6.0.1.ebuild
+++ b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-6.0.1.ebuild
@@ -23,7 +23,9 @@ SRC_URI="https://releases.llvm.org/${PV/_//}/${MY_P}.tar.xz
LICENSE="|| ( UoI-NCSA MIT )"
SLOT="${PV%_*}"
KEYWORDS="amd64 x86"
-IUSE="+clang test elibc_glibc"
+IUSE="+clang +libfuzzer +profile +sanitize test +xray elibc_glibc"
+# FIXME: libfuzzer does not enable all its necessary dependencies
+REQUIRED_USE="libfuzzer? ( || ( sanitize xray ) )"
RESTRICT="!test? ( test ) !clang? ( test )"
CLANG_SLOT=${SLOT%%.*}
@@ -40,7 +42,7 @@ DEPEND="
S=${WORKDIR}/${MY_P}
-PATCHES=( "${FILESDIR}"/${PN}-6.0.1-musl-patches.patch
+PATCHES=( "${FILESDIR}"/${PN}-6.0.1-musl-patches.patch
"${FILESDIR}"/0001-fixup-for-interception_type_test.patch
)
@@ -114,10 +116,10 @@ src_configure() {
-DCOMPILER_RT_INCLUDE_TESTS=$(usex test)
# built-ins installed by sys-libs/compiler-rt
-DCOMPILER_RT_BUILD_BUILTINS=OFF
- -DCOMPILER_RT_BUILD_LIBFUZZER=ON
- -DCOMPILER_RT_BUILD_PROFILE=ON
- -DCOMPILER_RT_BUILD_SANITIZERS=ON
- -DCOMPILER_RT_BUILD_XRAY=ON
+ -DCOMPILER_RT_BUILD_LIBFUZZER=$(usex libfuzzer)
+ -DCOMPILER_RT_BUILD_PROFILE=$(usex profile)
+ -DCOMPILER_RT_BUILD_SANITIZERS=$(usex sanitize)
+ -DCOMPILER_RT_BUILD_XRAY=$(usex xray)
)
if use test; then
mycmakeargs+=(
diff --git a/sys-libs/compiler-rt-sanitizers/metadata.xml b/sys-libs/compiler-rt-sanitizers/metadata.xml
index 3b99602..8f5cbb8 100644
--- a/sys-libs/compiler-rt-sanitizers/metadata.xml
+++ b/sys-libs/compiler-rt-sanitizers/metadata.xml
@@ -7,5 +7,9 @@
<use>
<flag name='clang'>Force building using installed clang (rather
than the default CC/CXX).</flag>
+ <flag name='libfuzzer'>Build fuzzing runtime.</flag>
+ <flag name='profile'>Build profiling runtime.</flag>
+ <flag name='sanitize'>Build sanitizer runtimes.</flag>
+ <flag name='xray'>Build XRay runtime.</flag>
</use>
</pkgmetadata>