diff --git a/.cargo/config.toml b/.cargo/config.toml index f7d8e616f8..c1bdfa1be7 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -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"]