Rename instances of “OS X” to “macOS” #70364
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a reworking of #12674, as rebasing became a bit of a dead end.
Here is @graydon's original PR description:
It's been pointed out that swiftc still uses 'OSX' or 'OS X' in a lot of places it ought to be saying 'macOS' now. This change switches many, but not all, of those cases. In particular it fixes those cases where the compiler gives feedback about availability guards (the original report was about these) as well as switching internal symbols and docs.
Notably: this change does not eliminate support for 'OSX' in availability checks (it's still a synonym) nor does it change all of the tests that use 'OSX' in those checks; I figured there was no point since the synonym is likely to be supported in perpetuity and it's good to test that fact too. Moreover this change does not alter the terminology in any of the configury or build system; it's my hope that by avoiding that, I can avoid unintentional breakage, though I suspect I'll still be breaking something.
Opinions welcome on how else to stage this.
rdar://35127522
Resolves #54205.