Skip to content

Commit 3ca30f7

Browse files
committed
fix: enable C++ toolchain detection for Rust binary compilation in release
Added --repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=0 and --enable_platform_specific_config flags to enable local C++ toolchain detection required by rust_binary rule in wasm_embed_aot tool.
1 parent 3264355 commit 3ca30f7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@ jobs:
7474
7575
# Build the component with embedded AOT artifacts
7676
echo "Embedding AOT artifacts as custom sections..."
77-
bazel build //tinygo:file_ops_component_aot
77+
# Enable local C++ toolchain detection for Rust binary
78+
bazel build //tinygo:file_ops_component_aot \
79+
--repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=0 \
80+
--enable_platform_specific_config
7881
7982
# Copy to a predictable location
8083
cp bazel-bin/tinygo/file_ops_component_aot.wasm ./file_ops_component_aot.wasm

0 commit comments

Comments
 (0)