-
Notifications
You must be signed in to change notification settings - Fork 460
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
Add support for ppc64le architecture #3259
base: main
Are you sure you want to change the base?
Conversation
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.
Thanks! Just one question though
@@ -117,7 +117,7 @@ def get_host_triple(repository_ctx, abi = None): | |||
# Detect the host's cpu architecture | |||
|
|||
supported_architectures = { | |||
"linux": ["aarch64", "x86_64", "s390x"], | |||
"linux": ["aarch64", "x86_64", "s390x", "powerpc64le"], |
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.
Is the host platform ever gonna be powerpc? I think the only changes you need are what was done in rust/platform/triple_mappings.bzl
.
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.
If I understand correctly, the host platform is the platform the bazel binary is executed on. When attempting to utilize rules_rust and executing bazel on a ppc64le host, I did receive the failure message from _validate_cpu_architecture
, causing the build to fail. Marking it as supported here seems necessary to avoid failure in that case.
Allow rules_rust module to be used on the ppc64le architecture. Signed-off-by: James Jenkins <James.Jenkins@ibm.com>
33e9753
to
7390d92
Compare
@Jenkins-J Looks like this PR will need to be rebased and the crate_universe examples repinned. |
Allow rules_rust module to be used on the ppc64le architecture.