diff options
author | Eli Schwartz <eschwartz93@gmail.com> | 2024-02-29 22:57:02 -0500 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-03-14 06:39:45 +0000 |
commit | 8d66e5f57fd11e8d9e28e4dcc587ce1b0629b57d (patch) | |
tree | ac4e17ec37fd03b21acc9b04c114375ec9f2cc7e /dev-util/ruff | |
parent | dev-util/ruff: cut down on number of programs built / installed (diff) | |
download | gentoo-8d66e5f57fd11e8d9e28e4dcc587ce1b0629b57d.tar.gz gentoo-8d66e5f57fd11e8d9e28e4dcc587ce1b0629b57d.tar.bz2 gentoo-8d66e5f57fd11e8d9e28e4dcc587ce1b0629b57d.zip |
dev-util/ruff: use system jemalloc
One of ruff's dependency crates is tikv-jemalloc-sys. This supports
linking to the system jemalloc; use it. Compiles a bit faster, produces
somewhat smaller binaries..
* SIZE: 37.74MiB -> 32.37MiB, 29 -> 29 files
* ------> SIZE(-14.21%)
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util/ruff')
-rw-r--r-- | dev-util/ruff/ruff-0.3.0-r1.ebuild | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dev-util/ruff/ruff-0.3.0-r1.ebuild b/dev-util/ruff/ruff-0.3.0-r1.ebuild index 4129d7112c39..91358106ca1e 100644 --- a/dev-util/ruff/ruff-0.3.0-r1.ebuild +++ b/dev-util/ruff/ruff-0.3.0-r1.ebuild @@ -397,6 +397,8 @@ KEYWORDS="~amd64 ~loong" BDEPEND=" >=virtual/rust-1.71 " +RDEPEND="dev-libs/jemalloc:=" +DEPEND="${RDEPEND}" QA_FLAGS_IGNORED="usr/bin/.*" @@ -420,6 +422,8 @@ src_configure() { } src_compile() { + local -x CARGO_FEATURE_UNPREFIXED_MALLOC_ON_SUPPORTED_PLATFORMS=1 + local -x JEMALLOC_OVERRIDE="${ESYSROOT}/usr/$(get_libdir)"/libjemalloc.so cargo_src_compile --bin ruff --bin ruff_shrinking local releasedir |