From efd9852428bda3f43c797bde91ce4bb2f09241b7 Mon Sep 17 00:00:00 2001 From: Omair Majid Date: Wed, 14 Aug 2019 10:02:54 -0400 Subject: [PATCH] Enable build on hosted arm64 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. --- Directory.Build.props | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index fe1f406a02d7..964441df552a 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -64,10 +64,8 @@ netcoreapp $(DefaultOSGroup) Debug - $([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture) - arm - arm64 - x64 + $([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture.ToString().ToLowerInvariant()) + $(HostArch) $(TargetGroup)-$(OSGroup)-$(ConfigurationGroup)-$(ArchGroup) @@ -135,9 +133,9 @@ <_runtimeOS Condition="'$(_runtimeOS)' == 'tizen.4.0.0'">linux <_runtimeOS Condition="'$(_runtimeOS)' == 'tizen.5.0.0'">linux <_runtimeOS Condition="'$(PortableBuild)' == 'true'">$(_portableOS) - $(_runtimeOS)-x64 + $(_runtimeOS)-$(HostArch) - linux-x64 + linux-x64 win-x64