Merge pull request #20647 from Homebrew/jemalloc-sys-page-size

ENV/super: set `JEMALLOC_SYS_WITH_LG_PAGE`
This commit is contained in:
Michael Cho 2025-09-08 20:24:52 +00:00 committed by GitHub
commit 4d36861ad0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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