From 3b57faf19bd9ae78c1765178353a7c8493197b04 Mon Sep 17 00:00:00 2001 From: Micha Reiser Date: Mon, 16 Sep 2024 09:41:46 +0200 Subject: [PATCH] Fix build of `ruff_benchmark` on NixOS (#13366) --- crates/ruff_benchmark/Cargo.toml | 2 +- crates/ruff_benchmark/benches/linter.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/ruff_benchmark/Cargo.toml b/crates/ruff_benchmark/Cargo.toml index 9d92fe5c9a..9df32cd5ee 100644 --- a/crates/ruff_benchmark/Cargo.toml +++ b/crates/ruff_benchmark/Cargo.toml @@ -66,4 +66,4 @@ codspeed = ["codspeed-criterion-compat"] mimalloc = { workspace = true } [target.'cfg(all(not(target_os = "windows"), not(target_os = "openbsd"), any(target_arch = "x86_64", target_arch = "aarch64", target_arch = "powerpc64")))'.dev-dependencies] -tikv-jemallocator = { workspace = true, features = ["unprefixed_malloc_on_supported_platforms"] } +tikv-jemallocator = { workspace = true } diff --git a/crates/ruff_benchmark/benches/linter.rs b/crates/ruff_benchmark/benches/linter.rs index ce4d055cb9..eb8667b9e6 100644 --- a/crates/ruff_benchmark/benches/linter.rs +++ b/crates/ruff_benchmark/benches/linter.rs @@ -42,9 +42,9 @@ static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc; ) ))] #[allow(non_upper_case_globals)] -#[export_name = "malloc_conf"] +#[export_name = "_rjem_malloc_conf"] #[allow(unsafe_code)] -pub static malloc_conf: &[u8] = b"dirty_decay_ms:-1,muzzy_decay_ms:-1\0"; +pub static _rjem_malloc_conf: &[u8] = b"dirty_decay_ms:-1,muzzy_decay_ms:-1\0"; fn create_test_cases() -> Result, TestFileDownloadError> { Ok(vec![