jemallocator icon indicating copy to clipboard operation
jemallocator copied to clipboard

Add support for aarch64-apple-darwin

Open wangjia184 opened this issue 4 years ago • 3 comments
trafficstars

Please consider add support for Apple M1

wangjia184 avatar Apr 26 '21 02:04 wangjia184

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

devongovett avatar May 20 '21 03:05 devongovett

Is this issue solved? I still have the m1 compiling error (not supported).

Thanks,

Jianshu

jianshu93 avatar Jan 21 '23 15:01 jianshu93

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?

konstin avatar Apr 11 '23 12:04 konstin