-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Concurrency] Use an availability macro instead of OS versions 9999 #37244
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
Conversation
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.
Oh my that's lovely! <3
Thanks so much for making that happen :-)
Let's try this with the Concurrency module first. I remain open to suggestions for a better macro name. @swift-ci Please smoke test |
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.
❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️
As far as naming goes, maybe |
The use of an availability macro will make it easier to update those versions to the marketing versions when they are announced. Plus internal branches can redefine only the macro for customized availability.
Updated with @swift-ci Please smoke test |
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 very cool! Two questions!:
- Shouldn't we also do this for the standard library, which uses the same pattern?
- Lots of tests also use this. Should we also put this into the normal lit config so we can use
SwiftStdlib <version number>
there, too?
Good points. I plan on adding the same macro for the standard library, however it looks like it has some left-over uses of 9999 for older versions that will need more care to turn on or avoid. I'll add it to the lit config at the same time, I didn't think of that. @swift-ci Please smoke test macOS |
@swift-ci Please smoke test macOS |
The use of an availability macro will make it easier to update those versions to the marketing versions when they are announced. Plus internal branches can redefine only the macro for customized availability.