Skip to content

[6.2][wasm] Rename wasm32-unknown-wasi to wasm32-unknown-wasip1 #83199

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

kateinoigakukun
Copy link
Member

@kateinoigakukun kateinoigakukun commented Jul 21, 2025

  • Explanation: Renames the WebAssembly target triple from wasm32-unknown-wasi to wasm32-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 and wasip2. This change has been adopted across multiple toolchains and language ecosystems:

    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 to wasm32-unknown-wasip1 #83167

  • Risk: Low, just a change to Wasm Swift SDK

  • Testing: CI.

  • Reviewers: @MaxDesiatov

@kateinoigakukun kateinoigakukun requested a review from a team as a code owner July 21, 2025 09:59
@kateinoigakukun kateinoigakukun added the 🍒 release cherry pick Flag: Release branch cherry picks label Jul 21, 2025
@MaxDesiatov MaxDesiatov requested a review from bnbarham July 21, 2025 10:01
@MaxDesiatov MaxDesiatov added WebAssembly Platform: WebAssembly WASI WebAssembly System Interface support swift 6.2 labels Jul 21, 2025
@MaxDesiatov
Copy link
Contributor

@swift-ci build toolchain

@MaxDesiatov
Copy link
Contributor

@swift-ci test

kateinoigakukun added a commit to swiftlang/swift-sdk-generator that referenced this pull request Jul 21, 2025
… exist (#230)

Cherry-pick #229 to
release/6.2 to unblock swiftlang/swift#83199

---------

Co-authored-by: Max Desiatov <m_desiatov@apple.com>
@kateinoigakukun
Copy link
Member Author

@swift-ci test

@kateinoigakukun
Copy link
Member Author

@swift-ci build toolchain

@MaxDesiatov
Copy link
Contributor

@swift-ci test linux

@MaxDesiatov
Copy link
Contributor

@swift-ci test macos

1 similar comment
@MaxDesiatov
Copy link
Contributor

@swift-ci test macos

@MaxDesiatov MaxDesiatov enabled auto-merge (squash) July 22, 2025 15:22
@MaxDesiatov MaxDesiatov merged commit b7c3cea into swiftlang:release/6.2 Jul 22, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 6.2 WASI WebAssembly System Interface support WebAssembly Platform: WebAssembly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants