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

Enable building for arm64 on arm64 #8468

Merged
merged 1 commit into from
Oct 8, 2019
Merged

Commits on Oct 7, 2019

  1. Enable building for arm64 on arm64

    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
    omajid committed Oct 7, 2019
    Configuration menu
    Copy the full SHA
    558f70f View commit details
    Browse the repository at this point in the history