-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Conversation
Initialize HostArch to the arch-style used in RIDs directly. Initialize ArchGroup to HostArch unless overriden. Use the HostArch for the tool runtime instead of assuming x64.
cc'ing some folks who have touched this code for a review: @safern @wfurt @tmds @ViktorHofer @ericstj |
<ArchGroup Condition="'$(ArchGroup)' == '' AND '$(HostArch)' == 'Arm'">arm</ArchGroup> | ||
<ArchGroup Condition="'$(ArchGroup)' == '' AND '$(HostArch)' == 'Arm64'">arm64</ArchGroup> | ||
<ArchGroup Condition="'$(ArchGroup)' == ''">x64</ArchGroup> | ||
<HostArch>$([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture.ToString().ToLowerInvariant())</HostArch> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering if API should be doing ToLower instead (fine in this PR though)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that would be probably considered breaking change so it may be too late for that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
When I was trying this while back I saw crashes and instability but maybe we improved over time.
This reverts commit 176da26.
Initialize HostArch to the arch-style used in RIDs directly. Unless running in Visual Studio, when it should be forced to x64. Initialize ArchGroup to HostArch unless overriden. Use the HostArch for the tool runtime instead of assuming x64.
This reverts commit 176da26.
This reverts commit ecd71d3.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Use the right RID for the tools on arm64.
With this change, I can build corefx on RHEL 8 on arm64 (hosted, not cross-compiled).