From 3a91d34e9fe692c522443b47ba46eb08406b6552 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Tue, 25 Nov 2025 08:50:48 +0100 Subject: [PATCH] bootstrap: Miri now handles jemalloc like everything else --- src/bootstrap/src/core/build_steps/tool.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bootstrap/src/core/build_steps/tool.rs b/src/bootstrap/src/core/build_steps/tool.rs index 535e6a510ca68..c5006912c97ac 100644 --- a/src/bootstrap/src/core/build_steps/tool.rs +++ b/src/bootstrap/src/core/build_steps/tool.rs @@ -228,9 +228,8 @@ pub fn prepare_tool_cargo( // own copy cargo.env("LZMA_API_STATIC", "1"); - // Note that `miri` always uses jemalloc. As such, there is no checking of the jemalloc build flag. // See also the "JEMALLOC_SYS_WITH_LG_PAGE" setting in the compile build step. - if env::var_os("JEMALLOC_SYS_WITH_LG_PAGE").is_none() { + if builder.config.jemalloc(target) && env::var_os("JEMALLOC_SYS_WITH_LG_PAGE").is_none() { // Build jemalloc on AArch64 with support for page sizes up to 64K // See: https://github.com/rust-lang/rust/pull/135081 if target.starts_with("aarch64") {