diff --git a/CHANGELOG.md b/CHANGELOG.md index fb432bc65..006b9780e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ### Build +Incrased the default page size of Jemalloc, so difftastic should work +on systems with large page sizes (typically aarch64, i.e. Arm). + difftastic now requires Rust 1.75 to build. ### Parsing diff --git a/build.rs b/build.rs index af5ca03ec..d4d76984e 100644 --- a/build.rs +++ b/build.rs @@ -220,6 +220,14 @@ fn main() { if let Some((version, _, _)) = rustc::triple() { println!("cargo:rustc-env=DFT_RUSTC_VERSION={}", version); } + + // Use 64-KiB pages with jemalloc. This solves ": + // Unsupported system page size" errors, and performs the same as + // jemalloc's default settings. + // + // Note that difftastic does not use jemalloc on all operating + // systems, but it's harmless to set this unconditionally. + println!("cargo:rustc-env=JEMALLOC_SYS_WITH_LG_PAGE=16"); } fn commit_info() {