From 373fcbaabd8be1ff6efa8cd829132e06f17e8358 Mon Sep 17 00:00:00 2001 From: Verney7 Date: Thu, 28 Aug 2025 15:50:25 +0800 Subject: [PATCH] Add support for sw_64 CPU architecture Introduces the sw_64 CPU constraint in the BUILD file and updates the _translate_cpu function in extension.bzl to recognize and translate the sw_64 architecture. --- cpu/BUILD | 5 +++++ host/extension.bzl | 2 ++ 2 files changed, 7 insertions(+) diff --git a/cpu/BUILD b/cpu/BUILD index 6497452..a3e347b 100644 --- a/cpu/BUILD +++ b/cpu/BUILD @@ -188,3 +188,8 @@ constraint_value( name = "riscv64", constraint_setting = ":cpu", ) + +constraint_value( + name = "sw_64", + constraint_setting = ":cpu", +) \ No newline at end of file diff --git a/host/extension.bzl b/host/extension.bzl index 69410cd..a7db5af 100644 --- a/host/extension.bzl +++ b/host/extension.bzl @@ -17,6 +17,8 @@ def _translate_cpu(arch): return "mips64" if arch in ["riscv64"]: return "riscv64" + if arch in ["sw_64"]: + return "sw_64" return None def _translate_os(os):