Skip to content

The target passed to clang is wrong for aarch64-apple-darwin #1871

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

Closed
glandium opened this issue Aug 13, 2020 · 5 comments
Closed

The target passed to clang is wrong for aarch64-apple-darwin #1871

glandium opened this issue Aug 13, 2020 · 5 comments

Comments

@glandium
Copy link
Contributor

bindgen passes the rust target unchanged, but unfortunately, in the case of aarch64-apple-darwin, the clang target is different, and clang doesn't recognize aarch64-apple-darwin at all. The right target to use is arm64-apple-darwin.

@kulp
Copy link
Member

kulp commented Aug 14, 2020

Was this issue possibly fixed by d55b063 ?

@glandium
Copy link
Contributor Author

Only when building on an Apple Silicon DTK with an arm64 rustc.

@simlay
Copy link
Contributor

simlay commented Aug 14, 2020

#1211 seems like this could be a related issue.

@glandium
Copy link
Contributor Author

Yes, it's the exact same thing.

@emilio
Copy link
Contributor

emilio commented Aug 14, 2020

Ok, let's close as a dupe of #1211 and fix it there. Thanks @glandium!

@emilio emilio closed this as completed Aug 14, 2020
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