Skip to content

Commit 4563aff

Browse files
committed
fix: major breakthrough - resolve C++ toolchain issues and WIT world mismatch
Major fixes achieved: - Added WebAssembly toolchain with Bazel strategy to avoid wrapper script issues - Updated rules_wasm_component to commit 082d191 with wasmsign2 + C++ toolchain fixes - Fixed WIT world name from 'file-operations-world' to 'file-ops-world' to match WIT definition - C++ toolchain resolution now working - no more toolchain type errors - TinyGo multi-file compilation working - reaches final WIT processing stage Build now progresses through all major compilation stages successfully. Only remaining issue: WIT file path resolution in wasm-tools component embed
1 parent d66e891 commit 4563aff

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

MODULE.bazel

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ bazel_dep(name = "rules_wasm_component", version = "0.1.0")
3737
# Git repository override - use main branch with merged fixes
3838
git_override(
3939
module_name = "rules_wasm_component",
40-
commit = "e6a3455", # Latest main branch with go_wasm_component + C++ toolchain fixes
40+
commit = "082d191", # Latest main branch with go_wasm_component + C++ toolchain + wasmsign2 fixes
4141
remote = "https://github.com/pulseengine/rules_wasm_component.git",
4242
)
4343

@@ -83,6 +83,16 @@ register_toolchains(
8383
# This ensures Linux CI has proper C++ toolchain resolution for Rust binaries
8484
register_toolchains("@bazel_tools//tools/cpp:all")
8585

86+
# WebAssembly toolchain with Bazel strategy to avoid wrapper script issues
87+
wasm_toolchain = use_extension("@rules_wasm_component//wasm:extensions.bzl", "wasm_toolchain")
88+
wasm_toolchain.register(
89+
name = "wasm_tools",
90+
strategy = "bazel", # Use Bazel-native rust_binary builds instead of wrapper scripts
91+
)
92+
use_repo(wasm_toolchain, "wasm_tools_toolchains")
93+
94+
register_toolchains("@wasm_tools_toolchains//:wasm_tools_toolchain")
95+
8696
# Note: Rust dependencies are provided by rules_wasm_component
8797
# No local Rust crate dependencies needed for TinyGo-focused implementation
8898

tinygo/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ go_wasm_component(
5252
optimization = "release",
5353
tags = ["manual"], # Build explicitly for WASM
5454
wit = "//wit:file_operations_wit",
55-
world = "file-operations-world",
55+
world = "file-ops-world",
5656
)
5757

5858
# Test suite

0 commit comments

Comments
 (0)