Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for aarch64-apple-darwin #170

Open
wangjia184 opened this issue Apr 26, 2021 · 3 comments
Open

Add support for aarch64-apple-darwin #170

wangjia184 opened this issue Apr 26, 2021 · 3 comments

Comments

@wangjia184
Copy link

Please consider add support for Apple M1

@wangjia184 wangjia184 changed the title Add support for x86_64-apple-darwin Add support for aarch64-apple-darwin Apr 26, 2021
@devongovett
Copy link

devongovett commented May 20, 2021

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?

if target.contains("ios") {
// newer iOS deviced have 16kb page sizes:
// closed: https://github.com/gnzlbg/jemallocator/issues/68
cmd.arg("--with-lg-page=14");
}

@jianshu93
Copy link

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

Thanks,

Jianshu

@konstin
Copy link

konstin commented Apr 11, 2023

We've hit the same problem in ruff (astral-sh/ruff#3791 (comment)). Would it be possible to make JEMALLOC_SYS_WITH_LG_PAGE=16 the default when cross compiling?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants