-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add support for iOS triples in swift build #6572
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 support for iOS triples in swift build #6572
Conversation
Will add tests later after settling things down and if the change would be accepted:) |
cc @neonichu |
**Content** - Added logic to resolve SDK paths whe building for Appli platforms - Added specific structure PlatformSDKPaths insted of simple tuple to represetn paths for platform headers/sdk - Destination.defaultDestination now instead of silent fallback to host emits error when triple is not supported - Added changes from swiftlang#6380 to pass --target fla to clang/swiftc with provided triple - Added validation of supported triples in applePlatformDestination() to ensure correct combination and enforce specifying the os version
@neonichu @MaxDesiatov any thoughts on this? |
This is promising! A couple of things to note:
|
@kabiroberai Yeah, regarding to the more comprehensive triples representation. In parallel to my pull-request there were a change to how SPM interacts with LLVM triple here: |
Ah that's great, it looks like the Triple changes just haven't been cherry-picked into 5.9. Interestingly the |
Sorry, this PR is just assigned to me to review it, but I haven't had a chance to do so. |
Decided to take a crack at this with the new Triple type + UserToolchain changes: #6732. @aleksproger I'd be happy to push my changes to your branch instead if you wanna give me write access. |
@kabiroberai I think we can close this in favor of #6732, right? |
@neonichu yep! |
Add support for iOS/iOS Simulator triples in swift build
Motivation:
Fixes the issue - #6571
Details provided there
Modifications:
Result:
swift build
accepts the following triplesarm64/x86_64-apple-ios
,arm64/x86_64-apple-ios-simulator
XCFramework
slice for provided triple