diff --git a/CHANGELOG.md b/CHANGELOG.md index 430c5c84f4..241dce4870 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -70,10 +70,10 @@ A brief description of the categories of changes: with `extra_pip_args = ["--platform=manylinux_2_4_x86_64"]`, that was an invalid usage previously but we were not failing the build. From now on this is explicitly disallowed. +* (toolchains) Added riscv64 platform definition for python toolchains. [precompile-docs]: /precompiling - ## [0.32.2] - 2024-05-14 [0.32.2]: https://github.com/bazelbuild/rules_python/releases/tag/0.32.2 diff --git a/python/versions.bzl b/python/versions.bzl index b4c837ee8f..08882d3ade 100644 --- a/python/versions.bzl +++ b/python/versions.bzl @@ -536,6 +536,14 @@ PLATFORMS = { # repository_ctx.execute(["uname", "-m"]).stdout.strip() arch = "ppc64le", ), + "riscv64-unknown-linux-gnu": struct( + compatible_with = [ + "@platforms//os:linux", + "@platforms//cpu:riscv64", + ], + os_name = LINUX_NAME, + arch = "riscv64", + ), "s390x-unknown-linux-gnu": struct( compatible_with = [ "@platforms//os:linux",