Skip to content

TargetOS::IsMacOS was not properly handled on X64 - #87940

Merged
kunalspathak merged 2 commits into
dotnet:mainfrom
davidwrighton:HandleOsxTargetInJITProperly
Jun 23, 2023
Merged

kunalspathak merged 2 commits into
dotnet:mainfrom
davidwrighton:HandleOsxTargetInJITProperly

Conversation

@davidwrighton

Copy link
Copy Markdown
Member
  • Add a new concept of only determining the OS dynamically on Unix, and not all the various flags
  • Funnel that through our build system
  • Remove some legacy msbuild logic that is no longer used

- Add a new concept of only determining the OS dynamically on Unix, and not all the various flags
- Funnel that through our build system
- Remove some legacy msbuild logic that is no longer used
@ghost ghost added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jun 22, 2023
@davidwrighton

Copy link
Copy Markdown
Member Author

@kunalspathak Does this fix the issue you were seeing?

@ghost ghost assigned davidwrighton Jun 22, 2023
@jkotas jkotas added area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Jun 23, 2023
@ghost

ghost commented Jun 23, 2023

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
  • Add a new concept of only determining the OS dynamically on Unix, and not all the various flags
  • Funnel that through our build system
  • Remove some legacy msbuild logic that is no longer used
Author: davidwrighton
Assignees: davidwrighton
Labels:

area-CodeGen-coreclr, needs-area-label

Milestone: -

@kunalspathak

Copy link
Copy Markdown
Contributor

@kunalspathak Does this fix the issue you were seeing?

I verified that it fixes the problem.

target_compile_definitions(${TARGETDETAILS_TARGET} PRIVATE TARGET_APPLE)
target_compile_definitions(${TARGETDETAILS_TARGET} PRIVATE TARGET_OSX)
endif()
if (TARGETDETAILS_OS STREQUAL "unix_anyos")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

what exactly is unix_anyos? it represents both linux and osx? because there is also unix_osx?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ah, its similar to how we have universal term...this is cross plat binary that can be used for altjit purpose on unix or macos I assume.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes. Its not actually intended for altjit (although it does work for that case) its primary use is for crossgen2, which supports targeting all architecture/os pairs from any given 64bit build.

@kunalspathak kunalspathak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@kunalspathak
kunalspathak merged commit 2ef78e4 into dotnet:main Jun 23, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Jul 24, 2023
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.

3 participants