Skip to content
  • Niyas Sait's avatar
    Enable native support for Windows on arm64 · 0ba4caa5
    Niyas Sait authored
    This PR will enable cross-compilation of Bazel binaries for win/arm64 from win/x64
    
    `bazel build -c opt --cpu=x64_arm64_windows //src:bazel.exe`
    
    Generated bazel executable can be used for native compilation in win/arm64
    
    `bazel.exe build //main:hello-world`
    
    Following changes are included
    
    - Add win/arm64 JDK 17
    - Fix AutoCpuConverter.java to identify win/arm64 CPU
    - Extend build_bazel_binaries.yml to cross-compile for win/arm64
    - Fix msvc toolchain to look for tools in HostX86 directory as well
    - add clang-cl support for windows/arm64 host
    - Extend host_windows config to handle windows x64 and arm64 hosts.
    
    Closes #14340.
    
    PiperOrigin-RevId: 425919351
    0ba4caa5