We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fb546ee + 53a5857 commit 2b97db2Copy full SHA for 2b97db2
src/bootstrap/src/core/build_steps/compile.rs
@@ -1207,6 +1207,15 @@ pub fn rustc_cargo_env(
1207
rustc_llvm_env(builder, cargo, target)
1208
}
1209
1210
+
1211
+ // Build jemalloc on AArch64 with support for page sizes up to 64K
1212
+ // See: https://github.com/rust-lang/rust/pull/135081
1213
+ if builder.config.jemalloc
1214
+ && target.starts_with("aarch64")
1215
+ && env::var_os("JEMALLOC_SYS_WITH_LG_PAGE").is_none()
1216
+ {
1217
+ cargo.env("JEMALLOC_SYS_WITH_LG_PAGE", "16");
1218
+ }
1219
1220
1221
/// Pass down configuration from the LLVM build into the build of
0 commit comments