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

Simplify {OS,Processor}Architecture on Unix #57172

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

@am11
Copy link
Contributor

@am11 am11 commented Aug 10, 2021

This PR defines TARGET_{arch} constant in System.Runtime.InteropServices.RuntimeInformation.csproj based on TargetArchitecture defined in the top-level Directory.Build.props; and uses the defined constant to set values for ProcessorArchitecture and OSArchitecture properties at build-time on Unix-like platforms.

With this approach the interop overhead to get the architecture value from PAL goes away, which was defining these values with similar mechanism.

Closes #57152

@dotnet-issue-labeler
Copy link

@dotnet-issue-labeler dotnet-issue-labeler bot commented Aug 10, 2021

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

1 participant