-
Notifications
You must be signed in to change notification settings - Fork 124
Add support for the libswiftCompatibilitySpan.dylib backward deployment library #642
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 the libswiftCompatibilitySpan.dylib backward deployment library #642
Conversation
@swift-ci please test |
1 similar comment
@swift-ci please test |
Note that we need this in Also, @slavapestov opened a PR for this a couple months ago (#359), I guess we should close that one now. |
Ah, I can replace this with one that targets release/6.2. Didn't realize that's how swift-build is handling branching. |
Yeah, we have a custom job set up... bit different from the rest of swiftlang. FYI, you can just change the PR's target branch and force push without needing to open a new PR. |
The Windows failures:
...look like STATUS_DLL_NOT_FOUND, meaning the binary that's running is failing to find some dependent DLL. EDIT: not a blocker, this is showing up everywhere. |
A couple of related fixes: * Use 26.0 as the fallback version number when SDKSettings doesn't include SwiftSpanMinimumDeploymentTarget * Update tests to expect `--back-deploy-swift-span` and check when it shouldn't be there
Co-authored-by: Owen Voorhees <[email protected]>
80215d6
to
f64487d
Compare
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 is looking good to me. There's a chance some more tests might need tweaks since CI is on Xcode 16.2 and associated SDKs, but we'll see.
@swift-ci test |
Co-authored-by: Owen Voorhees <[email protected]>
f64487d
to
6b581ea
Compare
@swift-ci please test |
Yep, done! |
@swift-ci test macos |
I misread the CI results -- there's a few which still need adjustment. Here's a link to the last failing run: https://ci.swift.org/job/pr-swift-build-macos/1004/console |
@owenv has a suggestion for making the tests run properly on older Xcodes, I'll get that pushed soon |
… versions Xcode versions that predate Xcode 26 don't include the Span back-deployment library. Introduce a hack to make it easier to still test with those Xcode versions.
@swift-ci test |
@swift-ci please test |
@swift-ci please test Linux |
@swift-ci please test |
The Swift library
libswiftCompatibilitySpan.dylib
allows uses ofSpan
,MutableSpan
, etc. to deploy to earlier OS versions. Detect when it is needed and copy it into the build artifact.