jemallocator
jemallocator copied to clipboard
Add support for aarch64-apple-darwin
Please consider add support for Apple M1
It appears to work when building locally in my experience. But if you are cross compiling (e.g. in CI), you'll need to set the JEMALLOC_SYS_WITH_LG_PAGE environment variable to 14 or you will get an error like "<jemalloc>: Unsupported system page size" at runtime.
Should this be set automatically when building for macOS aarch64 like done here for iOS?
https://github.com/gnzlbg/jemallocator/blob/c27a859e98e3cb790dc269773d9da71a1e918458/jemalloc-sys/build.rs#L237-L241
Is this issue solved? I still have the m1 compiling error (not supported).
Thanks,
Jianshu
We've hit the same problem in ruff (https://github.com/charliermarsh/ruff/issues/3791#issuecomment-1502667633). Would it be possible to make JEMALLOC_SYS_WITH_LG_PAGE=16 the default when cross compiling?