Skip to content
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

Rename IsMacOS to IsApplePlatform in the JIT #96090

Merged
merged 2 commits into from
Dec 17, 2023

Conversation

akoeplinger
Copy link
Member

Now that we use it on iOS/tvOS as well, rename the variables to match.

Fixes #87610

Now that we use it on iOS/tvOS as well, rename the variables to match.

Fixes dotnet#87610
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Dec 16, 2023
@ghost ghost assigned akoeplinger Dec 16, 2023
@ghost
Copy link

ghost commented Dec 16, 2023

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

Issue Details

Now that we use it on iOS/tvOS as well, rename the variables to match.

Fixes #87610

Author: akoeplinger
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

@am11
Copy link
Member

am11 commented Dec 16, 2023

IsAppleOS

Why not IsApplePlatform which we have used elsewhere? Or should we rename those to IsAppleOS (to rhyme with Target"OS")?

@akoeplinger
Copy link
Member Author

I don't particularly care, another option would be using IsOSXLike which we've used in ILC.

@am11
Copy link
Member

am11 commented Dec 16, 2023

I don't particularly care,

Well, introducing new name is not being consistent, which is the whole premise of this change. ;)

 % git grep -i isappleplatform | wc -l
      70
 % git grep -i isappleos | wc -l      
       0

@akoeplinger
Copy link
Member Author

Ok, renamed to IsApplePlatform and fixed a few other instances where we referred to osx/macos

@akoeplinger akoeplinger changed the title Rename IsMacOS to IsAppleOS in the JIT Rename IsMacOS to IsApplePlatform in the JIT Dec 16, 2023
Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@jkotas jkotas merged commit c7e8be1 into dotnet:main Dec 17, 2023
129 checks passed
@akoeplinger akoeplinger deleted the rename-apple branch December 17, 2023 08:38
@filipnavara filipnavara mentioned this pull request Dec 18, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jan 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[NativeAOT] Properly implement targeting iOS-like platforms rather than pretending to be macOS
3 participants