Skip to content

Fix ios cross compilation #197

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

Closed

Conversation

FlorianDenis
Copy link
Contributor

  • Make sure CMAKE_OSX_ARCHITECTURES gets defined for iOS if not user-supplied (extending existing logic for macOS)
  • Make sure CMAKE_OSX_SYSROOT gets defined as well

@tgross35
Copy link
Contributor

@FlorianDenis would you be able to resolve conflicts for this? I think this looks good otherwise, but @madsmtm could you confirm?

Copy link
Contributor

@madsmtm madsmtm left a comment

Choose a reason for hiding this comment

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

I'm not really that familiar with CMake, but it looks like an improvement overall (regardless of whether my comments below are fixed or not).

@@ -661,7 +661,7 @@ impl Config {
panic!("unsupported msvc target: {}", target);
}
}
} else if target.contains("darwin") {
} else if target.contains("darwin") || target.contains("ios") {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe:

Suggested change
} else if target.contains("darwin") || target.contains("ios") {
} else if target.contains("apple") {

To better support tvOS, watchOS and visionOS?

@@ -671,6 +671,14 @@ impl Config {
panic!("unsupported darwin target: {}", target);
Copy link
Contributor

Choose a reason for hiding this comment

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

This would need to be updated to support the other architectures used on Apple platforms, namely i686, arm64e, i386, armv7s, armv7k and arm64_32 (all of which should be passed with the same name to CMake).

@FlorianDenis
Copy link
Contributor Author

You are asking for conflict resolution on a 10 line PR that got ignored for 8 months?

@tgross35
Copy link
Contributor

This crate had a lapse in maintenance as you noticed, really the only thing we can do at this point is attempt to get it merged now.

If you are uninterested in continuing then I (or perhaps @madsmtm) can pick up your work and reapply it.

@FlorianDenis
Copy link
Contributor Author

Feel free to pick up the work and try to get it merged 👍

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