diff options
author | Sam James <sam@gentoo.org> | 2023-05-16 01:48:43 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-05-16 02:52:16 +0100 |
commit | 4d42d6b4c812913a48b3757c58748fd65d87006d (patch) | |
tree | d34cf208da38fe454facb908ab623056e9833c91 /dev-libs/mimalloc | |
parent | app-office/libreoffice: add Valgrind annotation support (diff) | |
download | gentoo-4d42d6b4c812913a48b3757c58748fd65d87006d.tar.gz gentoo-4d42d6b4c812913a48b3757c58748fd65d87006d.tar.bz2 gentoo-4d42d6b4c812913a48b3757c58748fd65d87006d.zip |
dev-libs/mimalloc: add Valgrind annotation support
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/mimalloc')
-rw-r--r-- | dev-libs/mimalloc/mimalloc-2.1.2.ebuild | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dev-libs/mimalloc/mimalloc-2.1.2.ebuild b/dev-libs/mimalloc/mimalloc-2.1.2.ebuild index a81b2c3128af..362471406fc9 100644 --- a/dev-libs/mimalloc/mimalloc-2.1.2.ebuild +++ b/dev-libs/mimalloc/mimalloc-2.1.2.ebuild @@ -12,9 +12,11 @@ SRC_URI="https://github.com/microsoft/mimalloc/archive/refs/tags/v${PV}.tar.gz - LICENSE="MIT" SLOT="0/2" KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86" -IUSE="hardened test" +IUSE="hardened test valgrind" RESTRICT="!test? ( test )" +DEPEND="valgrind? ( dev-util/valgrind )" + src_configure() { local mycmakeargs=( -DMI_SECURE=$(usex hardened) @@ -23,6 +25,7 @@ src_configure() { -DMI_BUILD_OBJECT=OFF -DMI_BUILD_STATIC=OFF + -DMI_TRACK_VALGRIND=$(usex valgrind) ) cmake-multilib_src_configure |