Skip to content
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

Add workaround for iOS build #286

Merged
1 commit merged into from Feb 8, 2020
Merged

Add workaround for iOS build #286

1 commit merged into from Feb 8, 2020

Conversation

ghost
Copy link

@ghost ghost commented Feb 1, 2020

There is an issue in bindgen that prevents building for the aarch64-apple-ios target. This works arounds the issue by replacing aarch64 with arm64 which clang can understand.

Also fixes conditional includes for macOS, which was using the target of the build script instead of the target we're building for.

Close #285

@ghost ghost added the bug label Feb 1, 2020
@ghost ghost requested a review from karroffel February 1, 2020 07:20
@ghost
Copy link
Author

ghost commented Feb 1, 2020

@karroffel I've mistakenly pushed the fix/ios-build branch to this repo instead of my fork on the first attempt, and have deleted it, causing the push CI build to fail (because it can't find the branch anymore). The pr CI build is passing.

@ghost ghost mentioned this pull request Feb 1, 2020
There is an issue in bindgen that prevents building for the aarch64-apple-ios target. This
works arounds the issue by replacing aarch64 with arm64 which clang can understand.

Also fixes conditional includes for macOS, which was using the target of the *build script*
instead of the target we're building for.

Close #285
@ghost ghost merged commit e45f4ff into godot-rust:master Feb 8, 2020
@ghost ghost deleted the fix/ios-build branch February 8, 2020 13:41
"MacOSX"
} else if cfg!(target_os = "ios") {
} else if target_os == "ios" {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm late to the party but have been messing around with rust on iOS for a bit lately and in order to better handle #343, I think you'll want to do something like my WIP uikit-sys crate. I think it's a bit more idiomatic to use xcrun to get the include path.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for the suggestion! I have created a separate issue for this improvement: #352. A PR would be great if you'd like to create one!

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

iOS build failing
1 participant