Skip to content

Conversation

@Verney7
Copy link

@Verney7 Verney7 commented Aug 29, 2025

In this commit, support for a new architecture sw_64 is added to bazel. sw_64 is a new RISC ISA, which is a bit like RISC-V. Though it is a rather new ISA, it has been added to openEuler and openAnolis port since 2020. So supporting this new architecture is meaningful. It's PR is to solve compilation failure on sw_64 architecture.

platforms merge request: platforms#124

Binutils has identified EM_SW64 is 268, I hope bazel can accept this patch. Thanks.

https://en.wikipedia.org/wiki/Sunway_(processor)

More information about sw_64 ISA:

$ uname -m
sw_64
$ gcc -E -dM - < /dev/null|grep __sw_64__
#define __sw_64__ 1
$ gcc -E -dM - < /dev/null|grep BYTE_ORDER
#define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__

Introduces support for the SW64 CPU architecture across build configuration files, Java enums, and test platform mocks. This includes new config_setting entries, updates to the CPU enum, and integration with AutoCpuConverter and relevant filegroups.
@Verney7 Verney7 requested a review from a team as a code owner August 29, 2025 07:30
@Verney7 Verney7 requested review from mai93 and removed request for a team August 29, 2025 07:30
@github-actions github-actions bot added team-Configurability platforms, toolchains, cquery, select(), config transitions awaiting-review PR is awaiting review from an assigned reviewer labels Aug 29, 2025
@satyanandak
Copy link

@Verney7 Could you please take a look at the failing checks?

@satyanandak satyanandak added awaiting-user-response Awaiting a response from the author and removed awaiting-review PR is awaiting review from an assigned reviewer labels Aug 29, 2025
@Verney7
Copy link
Author

Verney7 commented Aug 30, 2025

@Verney7 Could you please take a look at the failing checks?

These failing checks seem to be related to this bazelbuild/platforms/#124 not being merged. Can you help me merge this request?

@satyanandak satyanandak added awaiting-review PR is awaiting review from an assigned reviewer and removed awaiting-user-response Awaiting a response from the author labels Sep 1, 2025
@gregestren
Copy link
Contributor

Just to clarify, this PR is for bazel itself to be buildable for sw_64?

@Verney7
Copy link
Author

Verney7 commented Dec 15, 2025

Just to clarify, this PR is for bazel itself to be buildable for sw_64?

Yes, could you give some suggestion to help me merge this request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-review PR is awaiting review from an assigned reviewer team-Configurability platforms, toolchains, cquery, select(), config transitions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants