bazel: Register Pigweed toolchains we use
Bug: 362827235
Change-Id: If01a15f09b77235e44d2eb52438bb54753a3d72e
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/quickstart/bazel/+/238352
Pigweed-Auto-Submit: Ted Pudlik <tpudlik@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Reviewed-by: Taylor Cramer <cramertj@google.com>
diff --git a/MODULE.bazel b/MODULE.bazel
index 5d1a2fe..47d3d12 100644
--- a/MODULE.bazel
+++ b/MODULE.bazel
@@ -64,3 +64,13 @@
strip_prefix = "pw_toolchain_bazel",
)
+# Toolchain registration
+# ======================
+# Register Pigweed's C++ toolchains.
+register_toolchains(
+ "@pigweed//pw_toolchain:cc_toolchain_cortex-m0",
+ "@pigweed//pw_toolchain:cc_toolchain_cortex-m33",
+ "@pigweed//pw_toolchain/host_clang:host_cc_toolchain_linux",
+ "@pigweed//pw_toolchain/host_clang:host_cc_toolchain_macos",
+ dev_dependency = True,
+)