ENV/super: set JEMALLOC_SYS_WITH_LG_PAGE

AArch64 Linux supports up to 64KB page size

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Michael Cho 2025-09-07 12:51:56 -04:00
parent 5453c0a74c
commit 14d7942c95
No known key found for this signature in database
GPG Key ID: 55E85E28A7CD1E85

View File

@ -40,6 +40,8 @@ module OS
self["HOMEBREW_RPATH_PATHS"] = determine_rpath_paths(@formula)
m4_path_deps = ["libtool", "bison"]
self["M4"] = "#{HOMEBREW_PREFIX}/opt/m4/bin/m4" if deps.any? { m4_path_deps.include?(_1.name) }
# Build jemalloc-sys rust crate on ARM64/AArch64 with support for page sizes up to 64K.
self["JEMALLOC_SYS_WITH_LG_PAGE"] = "16" if ::Hardware::CPU.arch == :arm64
# Pointer authentication and BTI are hardening techniques most distros
# use by default on their packages. arm64 Linux we're packaging