-
Notifications
You must be signed in to change notification settings - Fork 352
[darwin] Upstream __isPlatformOrVariantPlatformVersionAtLeast() #9007
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
[darwin] Upstream __isPlatformOrVariantPlatformVersionAtLeast() #9007
Conversation
egorzhdan
left a comment
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 think this patch could be submitted to the upstream LLVM repo, since it isn't very specific to Swift. That would help us avoid auto-merger conflicts in the future.
|
Indeed, please upstream this to compiler-rt directly. Not having this in upstream LLVM will cause problems if we ever want to make sure of this functionality in other components. |
|
I will upstream this to upstream LLVM. However, this PR is still needed to make the change available to Swift's |
|
Created the upstream PR here: llvm#100605 |
|
This assumes that upstream will take the PR exactly as-is. If changes are needed to this function to make it acceptable upstream, we will end up not only with a merge conflict but potentially with internal stuff that relies on one definition, when upstream has a slightly different definition. This happened for e.g. IMO the fastest way to proceed is to not rush, and to land this upstream first. |
|
@ldionne I am waiting for llvm#100605 to land first but I wanted to get CI feedback for the change here. |
Add `__isPlatformOrVariantPlatformVersionAtLeast()` which is used to check OS version availability from zippered libraries on macOS. This routine is needed for complete macCatalyst support in the Swift compiler.
5014f4d to
f37c638
Compare
|
@swift-ci test llvm |
|
@swift-ci test |
|
@swift-ci test Linux |
Add
__isPlatformOrVariantPlatformVersionAtLeast()which is used to check OS version availability from zippered libraries on macOS. This routine is needed for complete macCatalyst support in the Swift compiler.