Skip to content

Commit e6a3455

Browse files
committed
fix: add default C++ toolchain registration for host Rust binaries
- Register @bazel_tools//tools/cpp:all to enable C++ toolchain resolution - Fixes file_operations_component Rust binary build in CI/CD environments - Resolves 'No matching toolchains found for types: @@bazel_tools//tools/cpp:toolchain_type'
1 parent dc1b2de commit e6a3455

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

MODULE.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ register_toolchains(
117117
"@wasi_sdk//:cc_toolchain",
118118
)
119119

120+
# Register default C++ toolchains for host Rust binaries requiring C++ linking
121+
register_toolchains("@bazel_tools//tools/cpp:all")
122+
120123
# TinyGo WASI Preview 2 toolchain
121124
tinygo = use_extension("//wasm:extensions.bzl", "tinygo")
122125
tinygo.register(

0 commit comments

Comments
 (0)