Skip to content

Commit 5b16979

Browse files
committed
fix: add default host C++ toolchains for Rust binaries
Add @bazel_tools//tools/cpp:all to toolchain registration to support building Rust binaries like file_operations_component on Linux CI. Without this, Linux CI fails with: 'No matching toolchains found for types: @@bazel_tools//tools/cpp:toolchain_type' macOS works because apple_support provides C++ toolchains automatically, but Linux needs explicit registration of default host toolchains.
1 parent 1902a4e commit 5b16979

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ use_repo(wasi_sdk, "wasi_sdk")
111111
register_toolchains(
112112
"@wasi_sdk//:wasi_sdk_toolchain",
113113
"@wasi_sdk//:cc_toolchain",
114+
"@bazel_tools//tools/cpp:all", # Default host C++ toolchains for Rust binaries
114115
)
115116

116117
# TinyGo WASI Preview 2 toolchain

0 commit comments

Comments
 (0)