-
Notifications
You must be signed in to change notification settings - Fork 333
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
Support for __aarch64__
flag
#333
Comments
OS? Clang compiler version? |
Well clang was 13 and the os i tested was arch Linux container but it also doesn't work in Ubuntu, Manjaro and fedora with MacOS SDK 11.3 |
I was compiling a project in rust that had dependency in ring which is the crate broke the build. Btw starting the compilation with system clang fails but then switching to osxcross then works |
how about it? I met the same error, can not compile briansmith/ring |
use -D__aarch64__ |
in [target.aarch64-apple-darwin]
rustflags = ["-C", "link-args=-D__aarch64__"]
linker = "o64h-clang"
ar = "aarch64-apple-darwin20.4-ar" |
@lmtr0 got same error .cargo/config.toml [build]
target = "aarch64-apple-darwin"
[target.aarch64-apple-darwin]
rustflags = ["-C", "link-args=-D__aarch64__"]
linker = "/osxcross/bin/aarch64-apple-darwin20.4-clang"
ar = "/osxcross/bin/aarch64-apple-darwin20.4-ar"
|
can you switch to sodiumoxide? I did that since I couldn't solve it |
I can not, it's not my application depend on ring, it's other package |
Sorry then, this sounds to be a problem with the compiler.... |
The latest version of ring (0.17.0) doesn't use |
As pointed out in briansmith/ring#1442 it appears that the o64h-clang is not setting any arm flags:
The text was updated successfully, but these errors were encountered: