Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Enable build on hosted arm64 #40311

Merged
merged 1 commit into from
Aug 16, 2019
Merged

Conversation

omajid
Copy link
Member

@omajid omajid commented Aug 14, 2019

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).

@omajid omajid changed the title Enable build on hosted arm64 WIP: Enable build on hosted arm64 Aug 14, 2019
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.
@omajid omajid closed this Aug 14, 2019
@omajid omajid reopened this Aug 14, 2019
@omajid omajid changed the title WIP: Enable build on hosted arm64 Enable build on hosted arm64 Aug 14, 2019
@omajid
Copy link
Member Author

omajid commented Aug 14, 2019

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>
Copy link
Member

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)

Copy link
Member

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.

Copy link
Member

@wfurt wfurt left a 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.

@ViktorHofer ViktorHofer merged commit 176da26 into dotnet:master Aug 16, 2019
ViktorHofer added a commit to ViktorHofer/corefx that referenced this pull request Aug 19, 2019
joperezr added a commit that referenced this pull request Aug 19, 2019
ViktorHofer added a commit that referenced this pull request Aug 20, 2019
omajid added a commit to omajid/dotnet-corefx that referenced this pull request Aug 20, 2019
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.
jozkee added a commit to jozkee/corefx that referenced this pull request Aug 22, 2019
jozkee added a commit to jozkee/corefx that referenced this pull request Aug 22, 2019
Copy link
Member

@safern safern left a comment

Choose a reason for hiding this comment

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

LGTM

@karelz karelz added this to the 5.0 milestone Dec 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants