mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-17 11:22:55 +00:00
Use system jemalloc
The version compiled by tikv_jemallocator by default assumes 16K pages, and doesn't work on systems which have 64K pages. Link the system jemalloc to ensure we ruff always uses a compatible jemalloc which aligns with local system conventions.
This commit is contained in:
parent
17c7b3cde1
commit
776cb07023
1 changed files with 4 additions and 0 deletions
|
|
@ -8,3 +8,7 @@ benchmark = "bench -p ruff_benchmark --bench linter --bench formatter --"
|
|||
# See: https://github.com/astral-sh/ruff/issues/11503
|
||||
[target.'cfg(all(target_env="msvc", target_os = "windows"))']
|
||||
rustflags = ["-C", "target-feature=+crt-static"]
|
||||
|
||||
# Use system jemalloc (which may or may not be compiled for 64K pages).
|
||||
[target.'cfg(all(target_env = "musl", target_os = "linux"))'.jemalloc]
|
||||
rustc-link-lib = ["jemalloc"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue