Skip to content

Commit 14d7942

Browse files
cho-mMikeMcQuaid
andcommitted
ENV/super: set JEMALLOC_SYS_WITH_LG_PAGE
AArch64 Linux supports up to 64KB page size Co-authored-by: Mike McQuaid <[email protected]>
1 parent 5453c0a commit 14d7942

File tree

1 file changed

+2
-0
lines changed
  • Library/Homebrew/extend/os/linux/extend/ENV

1 file changed

+2
-0
lines changed

Library/Homebrew/extend/os/linux/extend/ENV/super.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ def setup_build_environment(formula: nil, cc: nil, build_bottle: false, bottle_a
4040
self["HOMEBREW_RPATH_PATHS"] = determine_rpath_paths(@formula)
4141
m4_path_deps = ["libtool", "bison"]
4242
self["M4"] = "#{HOMEBREW_PREFIX}/opt/m4/bin/m4" if deps.any? { m4_path_deps.include?(_1.name) }
43+
# Build jemalloc-sys rust crate on ARM64/AArch64 with support for page sizes up to 64K.
44+
self["JEMALLOC_SYS_WITH_LG_PAGE"] = "16" if ::Hardware::CPU.arch == :arm64
4345

4446
# Pointer authentication and BTI are hardening techniques most distros
4547
# use by default on their packages. arm64 Linux we're packaging

0 commit comments

Comments
 (0)