From 96e8b3942de5ca3900e874a9825eb38b8f751c95 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Thu, 16 May 2024 18:40:06 -0600 Subject: [PATCH 1/3] feat(toolchains): Add riscv64 linux platform to available toolchain platforms --- python/versions.bzl | 8 ++++++++ 1 file changed, 8 insertions(+) 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", From 0d7dafa1a4e80eb1da79d18cce5509bc642bb372 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Fri, 17 May 2024 07:27:06 -0600 Subject: [PATCH 2/3] Note riscv64 support in CHANGELOG.md --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e993a7db8..e123aa2111 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,8 @@ A brief description of the categories of changes: ### Added +* (toolchains) Added riscv64 platform definition for python toolchains. + ## [0.32.2] - 2024-05-14 [0.32.2]: https://github.com/bazelbuild/rules_python/releases/tag/0.32.2 From b0aa07eba4001ca4ed217c7c3bb85ae24a1db1b2 Mon Sep 17 00:00:00 2001 From: Ignas Anikevicius <240938+aignas@users.noreply.github.com> Date: Sun, 19 May 2024 13:06:42 +0900 Subject: [PATCH 3/3] move changelog --- CHANGELOG.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3733fbe1e7..241dce4870 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -70,12 +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 - -* (toolchains) Added riscv64 platform definition for python toolchains. - ## [0.32.2] - 2024-05-14 [0.32.2]: https://github.com/bazelbuild/rules_python/releases/tag/0.32.2