Skip to content

Commit 79aab6e

Browse files
committed
fix: explicitly configure C++ compiler environment for AOT embedding
Set CC/CXX environment variables and pass them to Bazel via --repo_env and --action_env flags to ensure C++ toolchain detection for Rust binary compilation in wasm_embed_aot tool.
1 parent e367ada commit 79aab6e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,14 @@ jobs:
7474
7575
# Build the component with embedded AOT artifacts
7676
echo "Embedding AOT artifacts as custom sections..."
77-
# Use legacy C++ toolchain resolution for Rust binary compilation
77+
# Configure C++ toolchain environment for Rust binary compilation
78+
export CC=/usr/bin/gcc
79+
export CXX=/usr/bin/g++
7880
bazel build //tinygo:file_ops_component_aot \
79-
--incompatible_enable_cc_toolchain_resolution=false
81+
--repo_env=CC=/usr/bin/gcc \
82+
--repo_env=CXX=/usr/bin/g++ \
83+
--action_env=CC=/usr/bin/gcc \
84+
--action_env=CXX=/usr/bin/g++
8085
8186
# Copy to a predictable location
8287
cp bazel-bin/tinygo/file_ops_component_aot.wasm ./file_ops_component_aot.wasm

0 commit comments

Comments
 (0)