Skip to content

Commit 4de8e2d

Browse files
committed
fix: add downstream C++ toolchain configuration for Linux CI compatibility
- Add cc_configure_extension with local_config_cc repository setup - Add rules_cc 0.2.0 compatibility_proxy extension for bzlmod - Resolves C++ toolchain resolution failures in Linux CI environments - Fixes "No matching toolchains found" error for Rust binary linking - Ensures cross-platform compatibility between macOS (implicit) and Linux (explicit) toolchain detection Tested: file_operations_component builds successfully (250 actions)
1 parent 2e1ca67 commit 4de8e2d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

MODULE.bazel

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ bazel_dep(name = "rules_cc", version = "0.2.0")
1919
bazel_dep(name = "bazel_skylib", version = "1.8.1")
2020

2121
# Enable C++ toolchain auto-configuration for cross-platform support
22-
cc_configure = use_extension("@rules_cc//cc:extensions.bzl", "cc_configure")
22+
cc_configure = use_extension("@rules_cc//cc:extensions.bzl", "cc_configure_extension")
23+
use_repo(cc_configure, "local_config_cc")
24+
25+
# Add compatibility proxy repository for rules_cc 0.2.0 (required for bzlmod)
26+
cc_compatibility = use_extension("@rules_cc//cc:extensions.bzl", "compatibility_proxy")
2327

2428
# WebAssembly and component support
2529
bazel_dep(name = "rules_rust", version = "0.62.0")

0 commit comments

Comments
 (0)