Skip to content

remove target override for bindgen because it isn't necessary #112

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HackerFoo
Copy link
Contributor

This fixes an issue where aarch64-apple-ios-sim won't build with the error:

unable to generate bindings: ClangDiagnostic("error: version 'sim' in target triple 'aarch64-apple-ios-sim' is invalid\n")

I have a fix for bindgen, but the workaround in build.rs makes this ineffective.

Copy link
Member

@simlay simlay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, this seems perfect, correct and builds on my xcode 16.0 without the errors shown in the rust-bindgen PR. The part that's unclear to me is if it works as expected with older versions of clang/xcode.

Admittedly, there's not a policy of "oldest xcode supported" on this project but I'm anxious about broken builds for people on xcode 15 or something.

@madsmtm
Copy link
Contributor

madsmtm commented Apr 2, 2025

Ideally, we'd wait for rust-lang/rust-bindgen#3182 to land, and then add a dependency on the specific patch version that's released in. Then bindgen itself would be passing arm64-*, and older Xcode versions would still be supported.

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

Successfully merging this pull request may close these issues.

3 participants