-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Update cross compile toolchains #12069
Conversation
build:docker-sandbox --host_javabase=@rbe_ubuntu_clang//java:jdk | ||
build:docker-sandbox --javabase=@rbe_ubuntu_clang//java:jdk | ||
build:docker-sandbox --host_java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8 | ||
build:docker-sandbox --java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These flags were deprecated in bazel 5.0.0. See bazelbuild/bazel#7849
| target | linux_amd64 | linux_arm64 | osx_amd64 | osx_arm64 | windows_amd64 | | ||
|------------------|-------------------|------------------|-----------------|-----------------|-----------------------------------| | ||
| target | linux_amd64 | linux_arm64 | osx_amd64 | osx_arm64 | windows_amd64 | | ||
|------------------|--------------------------------------------------------------------|--------------------------------------------|------------------------------------|------------------------------------|------------------------------------| | ||
| `//beacon-chain` | :heavy_check_mark: docker-sandbox and RBE, supported locally only | :heavy_check_mark: docker-sandbox and RBE | :heavy_check_mark: docker-sandbox | :heavy_check_mark: docker-sandbox | :heavy_check_mark: docker-sandbox | | ||
| `//validator` | :heavy_check_mark: docker-sandbox and RBE | :heavy_check_mark: docker-sandbox and RBE | :heavy_check_mark: docker-sandbox | :heavy_check_mark: docker-sandbox | :heavy_check_mark: | | ||
| `//validator` | :heavy_check_mark: docker-sandbox and RBE | :heavy_check_mark: docker-sandbox and RBE | :heavy_check_mark: docker-sandbox | :heavy_check_mark: docker-sandbox | :heavy_check_mark: | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting changes here, it looks good on widescreen, i promise!
|-------------------------------|----------------------------|-----------------------------|---------------------------|---------------------------|-------------------------------| | ||
| Local run | `linux_amd64` | `linux_arm64` | `osx_amd64` | `osx_arm64` | `windows_amd64` | | ||
| Docker sandbox | `linux_amd64_docker` | `linux_arm64_docker` | `osx_amd64_docker` | `osx_arm64_docker` | `windows_amd64_docker ` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting changes here, it looks good on widescreen, i promise!
@@ -0,0 +1,202 @@ | |||
|
|||
Apache License |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This Apache license was generated by the cli tool. I think it's OK to leave it.
…ysm into update-tools-crosschain
Need to test cross compiled binaries work on the various platforms. Will test tomorrow. |
Confirmed basic sanity checks of darwin_amd64 and windows_amd64. Cross compile appears to be working as it did before these changes. |
What type of PR is this?
Other
What does this PR do? Why is it needed?
rbe_autoconfig
from bazel-toolchains has been deprecated since bazel 4 and is no longer supported. The canonical way is now to use the rbe_configs_gen CLI tool. This PR updates the cross compilation toolchains to use new configs generated by that CLI tool and updates the README instructions for maintaining these configs.Which issues(s) does this PR fix?
This removes some annoying warnings that bazel was showing on every build.
Other notes for review