Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable native support for Windows on arm64 (Part 1) #14689

Closed

Conversation

niyas-sait
Copy link
Contributor

Contains following changes to third_party:

  • Extended def_parser to handle ARM64 binaries
  • Add grpc patch to workaround build issues

Fixes: #14339

Contains following changes to third_party:

 - Extended def_parser to handle ARM64 binaries
 - Add grpc patch to workaround build issues

Fixes: bazelbuild#14339
@bazel-io bazel-io closed this in b3a7cd8 Feb 2, 2022
@meteorcloudy
Copy link
Member

@bazel-io fork 5.1

niyas-sait added a commit to niyas-sait/bazel that referenced this pull request Feb 11, 2022
Contains following changes to third_party:

 - Extended def_parser to handle ARM64 binaries
 - Add grpc patch to workaround build issues

Closes: bazelbuild#14689

Partial commit for third_party/*, see bazelbuild#14689.

Signed-off-by: Yun Peng <pcloudy@google.com>
meteorcloudy pushed a commit that referenced this pull request Feb 14, 2022
* Enable native support for Windows on arm64 (Part 1)

Contains following changes to third_party:

 - Extended def_parser to handle ARM64 binaries
 - Add grpc patch to workaround build issues

Closes: #14689

Partial commit for third_party/*, see #14689.

Signed-off-by: Yun Peng <pcloudy@google.com>

* Enable native support for Windows on arm64

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

* [windows/arm64] Add missing JDK toolchain for java build

Extend configurations to add JDK 11 and 17 for windows/arm64 platforms.

This should fix the Java builds on windows/arm64

Closes #14700.

PiperOrigin-RevId: 427737536

* add missing openjdk11_windows_arm64_archive

* Deduplicate urls parsed to reduce crawl requests

#14700 added couple more URLs to fetch JDK package and seems to be causing some infrastructure as discussed in #14700.

This patch workaround the issue by removing the duplicated URLs and reduce the crawl request.

Closes #14763.

PiperOrigin-RevId: 427464876

* fix jdk_http_archives.tmpl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

native bazel support for windows arm64 devices
2 participants