Remap iOS simulator target names to fix the build for the simulator#113
Remap iOS simulator target names to fix the build for the simulator#113plaidfinch wants to merge 1 commit intoRustAudio:masterfrom
Conversation
This adds additional logic to the `build.rs` script which handles the mismatch between the `-sim` and `-simulator` suffixes — Rust uses the former, and Clang expects the latter.
|
It appears this may be duplicative of #112; I'm not sure if these overrides are necessary in all environments, but the fix above works in mine. |
I believe it is. I'm currently waiting on a new release of rust-bindgen to include rust-lang/rust-bindgen#3182. |
Ah, great! Thanks for following up on this — should I raise this with |
Nah. This should be a patch release on |
|
Is there something missing here to merge? I'm having the same issue with cpal. |
Sorry. Still waiting on a crate.io release for rust-bindgen. I've also been testing out a cpal PR that removes the dependency on rust-bindgen. The testing is documented here RustAudio/coreaudio-rs#132 for RustAudio/cpal#943. This is similarly gonna take longer than you'll like as it will require a cpal release (and probably a minor version bump). Depending on how much you like to patch your project, you might be able to get away with: I've noticed that cpal's HEAD removes an oboe feature flag depending on the project so you might end up with that error. |
|
@plaidfinch This should now be resolved with #114 (and is now published to crates.io) so you should be able to |
|
Thank you! |
This adds additional logic to the
build.rsscript which handles the mismatch between the-simand-simulatorsuffixes — Rust uses the former, and Clang (at least,Apple clang version 17.0.0 (clang-1700.0.13.3) Target: arm64-apple-darwin24.3.0) expects the latter.This patch is motivated by a need to fix the build of
cpalfor the iOS simulator — at present, it fails (at least on my machine) due to this error:I can confirm that with a workspace patch pointed at this fork,
cpalis able to build successfully for iOS simulator.