Skip to content

Commit e367ada

Browse files
committed
fix: use legacy C++ toolchain resolution for Rust binary builds
Use --incompatible_enable_cc_toolchain_resolution=false flag to disable new toolchain resolution and fall back to system CC/CXX for rust_binary compilation in wasm_embed_aot tool.
1 parent 3ca30f7 commit e367ada

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,9 @@ jobs:
7474
7575
# Build the component with embedded AOT artifacts
7676
echo "Embedding AOT artifacts as custom sections..."
77-
# Enable local C++ toolchain detection for Rust binary
77+
# Use legacy C++ toolchain resolution for Rust binary compilation
7878
bazel build //tinygo:file_ops_component_aot \
79-
--repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=0 \
80-
--enable_platform_specific_config
79+
--incompatible_enable_cc_toolchain_resolution=false
8180
8281
# Copy to a predictable location
8382
cp bazel-bin/tinygo/file_ops_component_aot.wasm ./file_ops_component_aot.wasm

0 commit comments

Comments
 (0)