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

Enable Mach-O on iOS in gimli. #378

Merged
merged 2 commits into from
Oct 22, 2020
Merged

Conversation

cutsoy
Copy link
Contributor

@cutsoy cutsoy commented Oct 22, 2020

Fixes for iOS rust-lang/rust#78184.

iOS uses the same Mach-O format as macOS does. I have confirmed that this fix works on x86_64-apple-ios (tier 2). I expect it will also work on aarch64-apple-ios (tier 2), armv7-apple-ios, armv7s-apple-ios, i386-apple-ios, x86_64-apple-ios-macabi (tier 3), but I don't have the hardware to test on all of those archs.

Tier 2:

  • x86_64-apple-ios compiles and works
  • aarch64-apple-ios compiles

Tier 3:

  • armv7-apple-ios
  • armv7s-apple-ios
  • i386-apple-ios
  • x86_64-apple-ios-macabi
  • aarch64-apple-tvos
  • x86_64-apple-tvos

Nightly?:

  • armv7k-apple-watchos
  • i386-apple-watchos
  • x86_64-apple-watchos

(Thanks @bjorn3!)

@bjorn3
Copy link
Member

bjorn3 commented Oct 22, 2020

I think watchos and all other operating systems of apple should be included too.

@cutsoy
Copy link
Contributor Author

cutsoy commented Oct 22, 2020

Fixed! But I am assuming the target_os will be called watchos since there is no existing target spec in either stable or nightly as far as I can see.

@alexcrichton alexcrichton merged commit 8b8ea53 into rust-lang:master Oct 22, 2020
@alexcrichton
Copy link
Member

Thanks!

@tesuji tesuji mentioned this pull request Oct 23, 2020
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Oct 25, 2020
Bump backtrace-rs to enable Mach-O support on iOS.

Related to rust-lang/backtrace-rs#378. Fixes backtraces on iOS that were missing in Rust v1.47.0 after switching to gimli because it only enabled Mach-O support on macOS.
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