Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable building for arm64 on arm64 (dotnet/core-setup#8468)
To enable building core-setup on arm64 machines (not cross compiled), we need to do a few things: - Set the right TargetArchitecture When `TargetArchitecture` is not explicitly specified and when the currently running architecture is Arm64, use arm64 as the `TargetArchitecture`. Don't always use the currently running architecture as that doesn't play well with an x86 Visual Studio trying to create x64 builds. - 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 machine, we need to filter the list of found libclrjit.so files to pick the normal-RID (eg, linux-arm64) libclrjit.so from the two: ./.packages/transport.runtime.linux-arm64.microsoft.netcore.jit/<version>/runtimes/linux-arm64/native/libclrjit.so ./.packages/transport.runtime.linux-arm64.microsoft.netcore.jit/<version>/runtimes/x64_arm64/native/libclrjit.so Commit migrated from dotnet/core-setup@57ba280
- Loading branch information