[6.2][wasm] Rename wasm32-unknown-wasi
to wasm32-unknown-wasip1
#83199
+9
−16
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Explanation: Renames the WebAssembly target triple from
wasm32-unknown-wasi
towasm32-unknown-wasip1
to align with the broader WebAssembly ecosystem's naming conventions. It's important to include this in 6.2, which is going to be the first stable release of Swift SDK for Wasm, so that we won't introduce a breaking triple change in the stable version series later.The WebAssembly ecosystem has been migrating from the generic wasi target name to more explicit version-specific names like
wasip1
andwasip2
. This change has been adopted across multiple toolchains and language ecosystems:wasm32-wasi
towasm32-wasip1
(Renamewasm32-wasi
target towasm32-wasi-preview1
rust-lang/compiler-team#607)wasm32-wasi
towasm32-wasip1
(Start renaming preview1 to p1 and preview2 to p2 WebAssembly/wasi-sdk#386)wasip1
naming convention (all: add GOOS=wasip1 GOARCH=wasm port golang/go#58141)The "p1" suffix explicitly indicates WASI Preview 1, which helps distinguish it from the newer WASI Preview 2 (wasip2) and provides clarity about which version of the WASI specification is being targeted.
Also we already use
wasm32-unknown-wasip1
for Embedded WASI target, and having different names for Embedded and non-Embedded is confusing users.Scope: Narrow, only affects Wasm Swift SDK.
Original PRs: [wasm] Rename
wasm32-unknown-wasi
towasm32-unknown-wasip1
#83167Risk: Low, just a change to Wasm Swift SDK
Testing: CI.
Reviewers: @MaxDesiatov