From d36274c31cc30a946c023b7a5bb5c6fa1ff86625 Mon Sep 17 00:00:00 2001 From: Omair Majid Date: Tue, 20 Aug 2019 13:40:19 -0400 Subject: [PATCH] Enable build on hosted arm64 This is attempt #2. The first attempt was commit 176da26d634fd760d7c8c99956f2e8d3f7d485e7. Initialize HostArch to the arch-style used in RIDs directly by converting things to lowercase. Use the HostArch for the tool runtime instead of assuming x64. --- Directory.Build.props | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index fe1f406a02d7..dae20af84cc1 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -64,9 +64,9 @@ netcoreapp $(DefaultOSGroup) Debug - $([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture) - arm - arm64 + $([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture.ToString().ToLowerInvariant) + arm + arm64 x64 @@ -135,9 +135,10 @@ <_runtimeOS Condition="'$(_runtimeOS)' == 'tizen.4.0.0'">linux <_runtimeOS Condition="'$(_runtimeOS)' == 'tizen.5.0.0'">linux <_runtimeOS Condition="'$(PortableBuild)' == 'true'">$(_portableOS) - $(_runtimeOS)-x64 + $(_runtimeOS)-x64 + $(_runtimeOS)-$(HostArch) - linux-x64 + linux-x64 win-x64