-
Notifications
You must be signed in to change notification settings - Fork 131
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
Fix ios cross compilation #197
Conversation
@FlorianDenis would you be able to resolve conflicts for this? I think this looks good otherwise, but @madsmtm could you confirm? |
There was a problem hiding this 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") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe:
} 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); |
There was a problem hiding this comment.
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).
You are asking for conflict resolution on a 10 line PR that got ignored for 8 months? |
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. |
Feel free to pick up the work and try to get it merged 👍 |
CMAKE_OSX_ARCHITECTURES
gets defined for iOS if not user-supplied (extending existing logic for macOS)CMAKE_OSX_SYSROOT
gets defined as well