Skip to content

Commit c0a1eb0

Browse files
committed
bootstrap: Build jemalloc with support for 64K pages
By default, jemalloc is built to only support the same page size as the host machine. Set an env variable so that jemalloc is built with support for page sizes up to 64K regardless of the host machine.
1 parent 319f529 commit c0a1eb0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bootstrap/src/core/build_steps/compile.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1207,6 +1207,10 @@ pub fn rustc_cargo_env(
12071207
rustc_llvm_env(builder, cargo, target)
12081208
}
12091209
}
1210+
1211+
if builder.config.jemalloc {
1212+
cargo.env("JEMALLOC_SYS_WITH_LG_PAGE", "16");
1213+
}
12101214
}
12111215

12121216
/// Pass down configuration from the LLVM build into the build of

0 commit comments

Comments
 (0)