Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable hosted builds on arm64 (dotnet/core-setup#7696)
To enable building core-setup on arm64 (hosted, not cross compiled), we need to do a few things: - Set the right TargetArchitecture Use the currently running architecture to decide the HostArch. Use that as the default value of TargetArchitecture, unless another value was provided by the build configuration. - Use the right coreclr JIT If we are cross-compiling, we need to use the x86_arm64 libclrjit.so. But if we are building on an arm64 host, we need to pick the normal-RID (eg, linux-arm64) libclrjit.so from the two: ./.packages/transport.runtime.linux-arm64.microsoft.netcore.jit/###/runtimes/linux-arm64/native/libclrjit.so ./.packages/transport.runtime.linux-arm64.microsoft.netcore.jit/###/runtimes/x64_arm64/native/libclrjit.so - Use a version of SourceLink that supports arm64 We need to upgrade SourceLink to a version that contains dotnet/sourcelink#288. This commit just updates it to the latest version. Fixes dotnet/core-setup#7653 Commit migrated from dotnet/core-setup@4b82b1e
- Loading branch information