From 886b95fe004d67e4c149a4865ac2c5ea82ab70aa Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Wed, 22 Oct 2025 09:53:40 -0400 Subject: [PATCH] Add bpfel/bpfeb CPU constraint values These names are used in clang (see https://github.com/llvm/llvm-project/blob/6bee6b2/llvm/include/llvm/TargetParser/Triple.h#L1154-L1157) and Rust (see https://github.com/rust-lang/rust/blob/f5e2df7/src/doc/rustc/src/platform-support.md?plain=1#L311-L312). This addition is a prerequisite for teaching `rules_rust` about these constraints. --- cpu/BUILD | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cpu/BUILD b/cpu/BUILD index 6497452..c264823 100644 --- a/cpu/BUILD +++ b/cpu/BUILD @@ -188,3 +188,13 @@ constraint_value( name = "riscv64", constraint_setting = ":cpu", ) + +constraint_value( + name = "bpfel", + constraint_setting = ":cpu", +) + +constraint_value( + name = "bpfeb", + constraint_setting = ":cpu", +)