You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add WASI Preview 2 support and enhanced target coverage (#3507)
## Summary
Add `wasm32-wasip2` to `DEFAULT_EXTRA_TARGET_TRIPLES` following the same
pattern as `wasm32-wasip1`. This ensures WASI Preview 2 toolchains are
generated out-of-the-box alongside Preview 1, providing consistency for
users working with both WASI versions.
### Changes
- **Target Triple Registration**: Add `wasm32-wasip2` to
`DEFAULT_EXTRA_TARGET_TRIPLES` in `rust/private/repository_utils.bzl`
This addresses the feedback from @cameron-martin to include
`wasm32-wasip2` in the default extra target triples for automatic
toolchain generation.
# WASI doesn't need the allocator library - WASI runtime provides allocation
7
+
# Use empty srcs list to avoid needing archiving tools
8
+
"@platforms//os:wasi": [],
6
9
# Windows doesn't support weak symbol linkage.
7
10
# If someone can make this work on Windows, please do!
8
11
# For now we will silently not supply any symbols, because it would be very messy to conditionally define the default allocator library on toolchains depending on the platform.
0 commit comments