Skip to content

Rename IsMacOS to IsApplePlatform in the JIT - #96090

Merged
jkotas merged 2 commits into
dotnet:mainfrom
akoeplinger:rename-apple
Dec 17, 2023
Merged

Rename IsMacOS to IsApplePlatform in the JIT#96090
jkotas merged 2 commits into
dotnet:mainfrom
akoeplinger:rename-apple

Conversation

@akoeplinger

Copy link
Copy Markdown
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.
Fixesdotnet#87610
@ghostghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Dec 16, 2023
@ghost

Copy link
Copy Markdown

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

am11 commented Dec 16, 2023

Copy link
Copy Markdown
Member

IsAppleOS

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

@akoeplinger

Copy link
Copy Markdown
MemberAuthor

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

@am11

am11 commented Dec 16, 2023

Copy link
Copy Markdown
Member

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
Copy Markdown
MemberAuthor

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

@akoeplingerakoeplinger changed the title Rename IsMacOS to IsAppleOS in the JITRename IsMacOS to IsApplePlatform in the JITDec 16, 2023

@jkotasjkotas left a comment

Copy link
Copy Markdown
Member

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:mainDec 17, 2023
@akoeplinger
akoeplinger deleted the rename-apple branch December 17, 2023 08:38
@filipnavarafilipnavara mentioned this pull request Dec 18, 2023
@github-actionsgithub-actionsBot locked and limited conversation to collaborators Jan 16, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclrCLR 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

@akoeplinger@am11@jkotas