Skip to content

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.

@simlay simlay merged commit 75724bc into RustAudio:master Jun 8, 2025
10 checks passed
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